diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-07-31 18:41:58 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-07-31 18:41:58 +0200 |
commit | a751a0c74d455ad7dc17932163a42788e2b75786 (patch) | |
tree | 0d4c7efbd7eb288dee75125cc203d3027b5de564 /scripting/source | |
parent | Some cppcheck cleaning (diff) | |
download | core-a751a0c74d455ad7dc17932163a42788e2b75786.tar.gz core-a751a0c74d455ad7dc17932163a42788e2b75786.zip |
Some cppcheck cleaning
Diffstat (limited to 'scripting/source')
-rw-r--r-- | scripting/source/provider/ProviderCache.cxx | 2 | ||||
-rw-r--r-- | scripting/source/runtimemgr/StorageBridge.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripting/source/provider/ProviderCache.cxx b/scripting/source/provider/ProviderCache.cxx index 77a7609ddb7f..26b77467ddaa 100644 --- a/scripting/source/provider/ProviderCache.cxx +++ b/scripting/source/provider/ProviderCache.cxx @@ -188,7 +188,7 @@ ProviderCache::populateCache() throw ( RuntimeException ) } } } - catch ( Exception e ) + catch ( Exception &e ) { ::rtl::OUString temp = OUSTR( "ProviderCache::populateCache: couldn't obtain XSingleComponentFactory for " ); diff --git a/scripting/source/runtimemgr/StorageBridge.cxx b/scripting/source/runtimemgr/StorageBridge.cxx index c81dba2c825f..3b9a774556fd 100644 --- a/scripting/source/runtimemgr/StorageBridge.cxx +++ b/scripting/source/runtimemgr/StorageBridge.cxx @@ -104,7 +104,7 @@ throw ( lang::IllegalArgumentException, { results = m_xScriptInfoAccess->getScriptLogicalNames(); } - catch ( Exception e ) + catch ( Exception &e ) { OUString temp = OUSTR( "StorageBridge::getScriptLogicalNames: " ); throw RuntimeException( temp.concat( e.Message ), Reference< XInterface >() ); @@ -123,7 +123,7 @@ throw ( lang::IllegalArgumentException, RuntimeException ) { results = m_xScriptInfoAccess->getImplementations( queryURI ); } - catch ( Exception e ) + catch ( Exception &e ) { OUString temp = OUSTR( "StorageBridge::getImplementations: " ); throw RuntimeException( temp.concat( e.Message ), Reference< XInterface >() ); |