summaryrefslogtreecommitdiffstats
path: root/cui/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-21 11:46:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-21 14:25:44 +0000
commit548b28a947c38454b570e42fc65997f3055924f5 (patch)
tree96872341dd0c03ecf977f4a7ddbcb22d092b1553 /cui/source
parentWaE: add virtual dtor (diff)
downloadcore-548b28a947c38454b570e42fc65997f3055924f5.tar.gz
core-548b28a947c38454b570e42fc65997f3055924f5.zip
WaE: unused variable
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/options/optinet2.cxx39
1 files changed, 20 insertions, 19 deletions
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx
index 361ce967b2b8..c42edd79b4b3 100644
--- a/cui/source/options/optinet2.cxx
+++ b/cui/source/options/optinet2.cxx
@@ -284,15 +284,15 @@ void SvxProxyTabPage::ReadConfigData_Impl()
}
}
- catch(container::NoSuchElementException &) {
+ catch (const container::NoSuchElementException) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: NoSuchElementException caught" );
}
- catch(com::sun::star::lang::WrappedTargetException &) {
+ catch (const com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: WrappedTargetException caught" );
}
- catch(RuntimeException &) {
+ catch (const RuntimeException &) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: RuntimeException caught" );
}
@@ -342,16 +342,16 @@ void SvxProxyTabPage::ReadConfigDefaults_Impl()
aNoProxyForED.SetText( aStringValue );
}
}
- catch(beans::UnknownPropertyException &)
+ catch (const beans::UnknownPropertyException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" );
}
- catch(com::sun::star::lang::WrappedTargetException &) {
+ catch (const com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" );
}
- catch(RuntimeException &)
+ catch (const RuntimeException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" );
}
@@ -376,16 +376,16 @@ void SvxProxyTabPage::RestoreConfigDefaults_Impl()
xChangesBatch->commitChanges();
}
- catch(beans::UnknownPropertyException &)
+ catch (const beans::UnknownPropertyException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" );
}
- catch(com::sun::star::lang::WrappedTargetException &) {
+ catch (const com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" );
}
- catch(RuntimeException &)
+ catch (const RuntimeException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" );
}
@@ -481,23 +481,23 @@ sal_Bool SvxProxyTabPage::FillItemSet(SfxItemSet& )
xChangesBatch->commitChanges();
}
- catch(com::sun::star::lang::IllegalArgumentException &) {
+ catch (const com::sun::star::lang::IllegalArgumentException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: IllegalArgumentException caught" );
}
- catch(beans::UnknownPropertyException &) {
+ catch (const beans::UnknownPropertyException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: UnknownPropertyException caught" );
}
- catch(beans::PropertyVetoException &) {
+ catch (const beans::PropertyVetoException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: PropertyVetoException caught" );
}
- catch(com::sun::star::lang::WrappedTargetException &) {
+ catch (const com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: WrappedTargetException caught" );
}
- catch(RuntimeException &) {
+ catch (const RuntimeException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: RuntimeException caught" );
}
@@ -748,7 +748,7 @@ IMPL_LINK( SvxSecurityTabPage, SavePasswordHdl, void*, EMPTYARG )
}
}
}
- catch( Exception& )
+ catch (const Exception&)
{
maSavePasswordsCB.Check( !maSavePasswordsCB.IsChecked() );
}
@@ -768,7 +768,7 @@ IMPL_LINK( SvxSecurityTabPage, MasterPasswordHdl, PushButton*, EMPTYARG )
if ( xMasterPasswd.is() && xMasterPasswd->isPersistentStoringAllowed() )
xMasterPasswd->changeMasterPassword( Reference< task::XInteractionHandler >() );
}
- catch( Exception& )
+ catch (const Exception&)
{}
return 0;
@@ -812,7 +812,7 @@ IMPL_LINK( SvxSecurityTabPage, MasterPasswordCBHdl, void*, EMPTYARG )
}
}
}
- catch( Exception& )
+ catch (const Exception&)
{
maSavePasswordsCB.Check( !maSavePasswordsCB.IsChecked() );
}
@@ -835,7 +835,7 @@ IMPL_LINK( SvxSecurityTabPage, ShowPasswordsHdl, PushButton*, EMPTYARG )
aDlg.Execute();
}
}
- catch( Exception& )
+ catch (const Exception&)
{}
return 0;
}
@@ -852,6 +852,7 @@ IMPL_LINK( SvxSecurityTabPage, MacroSecPBHdl, void*, EMPTYARG )
catch (const Exception& e)
{
OSL_FAIL(rtl::OUStringToOString(e.Message, osl_getThreadTextEncoding()).getStr());
+ (void)e;
}
return 0;
}
@@ -960,7 +961,7 @@ void SvxSecurityTabPage::InitControls()
}
}
}
- catch( Exception& )
+ catch (const Exception&)
{
maSavePasswordsCB.Enable( sal_False );
}