diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-06 00:19:44 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-06 00:20:08 +0900 |
commit | 877da827a7aab5a7fb6bc3f84c2d5a48cac381ff (patch) | |
tree | 1e7ffcfc4020227cd1662cffb8ad894e3398e5a2 /desktop/source/deployment/dp_log.cxx | |
parent | ac9f72d9627f979f1e4bd0490578aba1ede577d4 (diff) |
catch exception by constant reference
Diffstat (limited to 'desktop/source/deployment/dp_log.cxx')
-rw-r--r-- | desktop/source/deployment/dp_log.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/deployment/dp_log.cxx b/desktop/source/deployment/dp_log.cxx index 079670b5c236..63ab7cb7cefe 100644 --- a/desktop/source/deployment/dp_log.cxx +++ b/desktop/source/deployment/dp_log.cxx @@ -85,7 +85,7 @@ void ProgressLogImpl::disposing() m_xLogFile.clear(); } } - catch (Exception & exc) { + catch (const Exception & exc) { (void) exc; OSL_FAIL( OUStringToOString( exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() ); @@ -149,7 +149,7 @@ void ProgressLogImpl::log_write( OString const & text ) text.getLength() ) ); } } - catch (io::IOException & exc) { + catch (const io::IOException & exc) { (void) exc; OSL_FAIL( OUStringToOString( exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() ); |