diff options
-rw-r--r-- | framework/source/uielement/uicommanddescription.cxx | 4 | ||||
-rw-r--r-- | linguistic/source/lngprophelp.cxx | 2 | ||||
-rw-r--r-- | scripting/source/provider/ProviderCache.cxx | 2 | ||||
-rw-r--r-- | scripting/source/runtimemgr/StorageBridge.cxx | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx index 273d46faf2d8..a338c267c807 100644 --- a/framework/source/uielement/uicommanddescription.cxx +++ b/framework/source/uielement/uicommanddescription.cxx @@ -439,7 +439,7 @@ sal_Bool ConfigurationAccess_UICommand::addGenericInfoToCache() } catch ( RuntimeException& e ) { - throw e; + throw; } catch ( Exception& ) { @@ -453,7 +453,7 @@ sal_Bool ConfigurationAccess_UICommand::addGenericInfoToCache() } catch ( RuntimeException& e ) { - throw e; + throw; } catch ( Exception& ) { diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx index ee96c673ea26..51d486650b70 100644 --- a/linguistic/source/lngprophelp.cxx +++ b/linguistic/source/lngprophelp.cxx @@ -453,7 +453,6 @@ sal_Bool PropertyHelper_Spell::propertyChange_Impl( const PropertyChangeEvent& r if (!bRes && GetPropSet().is() && rEvt.Source == GetPropSet()) { - sal_Int16 nLngSvcFlags = 0; sal_Bool bSCWA = sal_False, // SPELL_CORRECT_WORDS_AGAIN ? bSWWA = sal_False; // SPELL_WRONG_WORDS_AGAIN ? @@ -490,6 +489,7 @@ sal_Bool PropertyHelper_Spell::propertyChange_Impl( const PropertyChangeEvent& r bRes = (pbVal != 0); if (bRes) { + sal_Int16 nLngSvcFlags = 0; if (bSCWA) nLngSvcFlags |= LinguServiceEventFlags::SPELL_CORRECT_WORDS_AGAIN; if (bSWWA) 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 >() ); |