diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-27 00:12:38 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-27 10:17:15 +0900 |
commit | c936e5062770ba100c2eddd7889b51d271c6c73c (patch) | |
tree | 7ab2701dce9bfea7ac5b3b319a05a1aeb4a25cad /stoc/source/servicemanager/servicemanager.cxx | |
parent | Use default UI_SANS (dropping Culmus fonts), but keep Tahoma first (for Windows) (diff) | |
download | core-c936e5062770ba100c2eddd7889b51d271c6c73c.tar.gz core-c936e5062770ba100c2eddd7889b51d271c6c73c.zip |
catch exception by constant reference
Diffstat (limited to 'stoc/source/servicemanager/servicemanager.cxx')
-rw-r--r-- | stoc/source/servicemanager/servicemanager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx index 45010dab0fcb..f6a25e883b9a 100644 --- a/stoc/source/servicemanager/servicemanager.cxx +++ b/stoc/source/servicemanager/servicemanager.cxx @@ -982,7 +982,7 @@ void OServiceManager::disposing() if( xComp.is() ) xComp->dispose(); } - catch (RuntimeException & exc) + catch (const RuntimeException & exc) { #if OSL_DEBUG_LEVEL > 1 OString str( OUStringToOString( exc.Message, RTL_TEXTENCODING_ASCII_US ) ); @@ -1204,7 +1204,7 @@ Reference< XInterface > OServiceManager::createInstanceWithContext( } } } - catch (lang::DisposedException & exc) + catch (const lang::DisposedException & exc) { #if OSL_DEBUG_LEVEL > 1 OString str( OUStringToOString( exc.Message, RTL_TEXTENCODING_ASCII_US ) ); @@ -1268,7 +1268,7 @@ Reference< XInterface > OServiceManager::createInstanceWithArgumentsAndContext( } } } - catch (lang::DisposedException & exc) + catch (const lang::DisposedException & exc) { #if OSL_DEBUG_LEVEL > 1 OString str( OUStringToOString( exc.Message, RTL_TEXTENCODING_ASCII_US ) ); |