diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-05-02 12:13:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-05-02 12:13:01 +0100 |
commit | c91b51edc10dae72fc1d1f4bdfe21ef70bb00fde (patch) | |
tree | 3da17d05c25f3b9f72a406b0c187ccf57bfb9f57 /oox/source | |
parent | 0915c2c3155773dd7529bb878668fffc4cb5470f (diff) |
catch by const ref
Change-Id: Ib1571dfd2e7b821c929ab7efa9077a355471c0b8
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/helper/textinputstream.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/oox/source/helper/textinputstream.cxx b/oox/source/helper/textinputstream.cxx index 34c599ae7d8a..ae28ad3a84ac 100644 --- a/oox/source/helper/textinputstream.cxx +++ b/oox/source/helper/textinputstream.cxx @@ -146,7 +146,7 @@ bool TextInputStream::isEof() const { return mxTextStrm->isEOF(); } - catch( Exception& ) + catch (const Exception&) { } return true; @@ -160,7 +160,7 @@ OUString TextInputStream::readLine() been buffered in the previous call of readToChar() (see below). */ return createFinalString( mxTextStrm->readLine() ); } - catch( Exception& ) + catch (const Exception&) { mxTextStrm.clear(); } @@ -188,7 +188,7 @@ OUString TextInputStream::readToChar( sal_Unicode cChar, bool bIncludeChar ) } return aString; } - catch( Exception& ) + catch (const Exception&) { mxTextStrm.clear(); } @@ -209,7 +209,7 @@ OUString TextInputStream::readToChar( sal_Unicode cChar, bool bIncludeChar ) xTextStrm.set( xDataSink, UNO_QUERY_THROW ); xTextStrm->setEncoding( OUString::createFromAscii( pcCharset ) ); } - catch( Exception& ) + catch (const Exception&) { } return xTextStrm; |