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 | |
parent | 470b293417a84a6786ff99dcd3e8b71567b2913a (diff) |
Some cppcheck cleaning
Diffstat (limited to 'scripting')
-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 >() ); |