Kaydet (Commit) c91b51ed authored tarafından Caolán McNamara's avatar Caolán McNamara

catch by const ref

Change-Id: Ib1571dfd2e7b821c929ab7efa9077a355471c0b8
üst 0915c2c3
...@@ -146,7 +146,7 @@ bool TextInputStream::isEof() const ...@@ -146,7 +146,7 @@ bool TextInputStream::isEof() const
{ {
return mxTextStrm->isEOF(); return mxTextStrm->isEOF();
} }
catch( Exception& ) catch (const Exception&)
{ {
} }
return true; return true;
...@@ -160,7 +160,7 @@ OUString TextInputStream::readLine() ...@@ -160,7 +160,7 @@ OUString TextInputStream::readLine()
been buffered in the previous call of readToChar() (see below). */ been buffered in the previous call of readToChar() (see below). */
return createFinalString( mxTextStrm->readLine() ); return createFinalString( mxTextStrm->readLine() );
} }
catch( Exception& ) catch (const Exception&)
{ {
mxTextStrm.clear(); mxTextStrm.clear();
} }
...@@ -188,7 +188,7 @@ OUString TextInputStream::readToChar( sal_Unicode cChar, bool bIncludeChar ) ...@@ -188,7 +188,7 @@ OUString TextInputStream::readToChar( sal_Unicode cChar, bool bIncludeChar )
} }
return aString; return aString;
} }
catch( Exception& ) catch (const Exception&)
{ {
mxTextStrm.clear(); mxTextStrm.clear();
} }
...@@ -209,7 +209,7 @@ OUString TextInputStream::readToChar( sal_Unicode cChar, bool bIncludeChar ) ...@@ -209,7 +209,7 @@ OUString TextInputStream::readToChar( sal_Unicode cChar, bool bIncludeChar )
xTextStrm.set( xDataSink, UNO_QUERY_THROW ); xTextStrm.set( xDataSink, UNO_QUERY_THROW );
xTextStrm->setEncoding( OUString::createFromAscii( pcCharset ) ); xTextStrm->setEncoding( OUString::createFromAscii( pcCharset ) );
} }
catch( Exception& ) catch (const Exception&)
{ {
} }
return xTextStrm; return xTextStrm;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment