summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-22 11:33:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-22 12:46:43 +0000
commit5317e0501fe356fb38c7de408cdde1d3f3e1242e (patch)
treee727761b5ebcc47c031fa3fd5d0974a0c30b4bb1 /sdext
parented7c80d3353bd21d9c278a209adb4e62669b3978 (diff)
WaE: unused variable, and catch by const
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/minimizer/configurationaccess.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/sdext/source/minimizer/configurationaccess.cxx b/sdext/source/minimizer/configurationaccess.cxx
index 449dfe79e702..fde554d972e6 100644
--- a/sdext/source/minimizer/configurationaccess.cxx
+++ b/sdext/source/minimizer/configurationaccess.cxx
@@ -89,7 +89,7 @@ void OptimizerSettings::LoadSettingsFromConfiguration( const Reference< XNameAcc
default: break;
}
}
- catch( Exception& )
+ catch (const Exception&)
{
}
}
@@ -142,7 +142,7 @@ void OptimizerSettings::SaveSettingsToConfiguration( const Reference< XNameRepla
{
rSettings->replaceByName( pNames[ i ], pValues[ i ] );
}
- catch( Exception& /* rException */ )
+ catch (const Exception&)
{
}
}
@@ -200,7 +200,7 @@ rtl::OUString ConfigurationAccess::getPath( const PPPOptimizerTokenEnum eToken )
}
}
}
- catch ( Exception& )
+ catch (const Exception&)
{
}
return aPath;
@@ -233,7 +233,7 @@ void ConfigurationAccess::LoadStrings()
if ( xSet->getByName( aPropertyName ) >>= aString )
maStrings[ TKGet( aPropertyName ) ] = aString;
}
- catch( Exception& )
+ catch (const Exception&)
{
}
}
@@ -241,7 +241,7 @@ void ConfigurationAccess::LoadStrings()
}
while( false );
}
- catch( Exception& )
+ catch (const Exception&)
{
}
}
@@ -277,7 +277,7 @@ void ConfigurationAccess::LoadConfiguration()
maSettings.back().LoadSettingsFromConfiguration( xTemplates );
}
}
- catch( Exception& /* rException */ )
+ catch (const Exception&)
{
}
}
@@ -285,7 +285,7 @@ void ConfigurationAccess::LoadConfiguration()
}
while( false );
}
- catch( Exception& )
+ catch (const Exception&)
{
}
}
@@ -329,9 +329,8 @@ void ConfigurationAccess::SaveConfiguration()
}
while( false );
}
- catch( Exception& /* rException */ )
+ catch (const Exception&)
{
-
}
}
@@ -363,7 +362,7 @@ Reference< XInterface > ConfigurationAccess::OpenConfiguration( bool bReadOnly )
sAccessService, aCreationArguments );
}
}
- catch ( Exception& /* rException */ )
+ catch (const Exception&)
{
}
return xRoot;
@@ -387,13 +386,14 @@ Reference< XInterface > ConfigurationAccess::GetConfigurationNode(
}
}
}
- catch ( Exception& rException )
+ catch (const Exception& rException)
{
OSL_TRACE ("caught exception while getting configuration node %s: %s",
::rtl::OUStringToOString(sPathToNode,
RTL_TEXTENCODING_UTF8).getStr(),
::rtl::OUStringToOString(rException.Message,
RTL_TEXTENCODING_UTF8).getStr());
+ (void)rException;
}
return xNode;
}
@@ -426,7 +426,7 @@ com::sun::star::uno::Any ConfigurationAccess::GetConfigProperty( const PPPOptimi
break;
}
}
- catch( Exception& /* rException */ )
+ catch (const Exception&)
{
}
return aRetValue;
@@ -460,7 +460,7 @@ void ConfigurationAccess::SetConfigProperty( const PPPOptimizerTokenEnum eProper
break;
}
}
- catch( Exception& /* rException */ )
+ catch (const Exception&)
{
}
}