summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-02-05 10:49:59 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-02-05 10:50:31 +0100
commitfa6665282e2a7c8753eb35b2f03499134413caca (patch)
tree9fb2c707d5c73b5f8a1064dfb4c5ea855b33b820 /framework
parentfix various overlapped controls in the Options dialog (diff)
downloadcore-fa6665282e2a7c8753eb35b2f03499134413caca.tar.gz
core-fa6665282e2a7c8753eb35b2f03499134413caca.zip
Some cppcheck cleaning
Diffstat (limited to 'framework')
-rw-r--r--framework/source/dispatch/dispatchinformationprovider.cxx4
-rw-r--r--framework/source/services/pathsettings.cxx12
2 files changed, 8 insertions, 8 deletions
diff --git a/framework/source/dispatch/dispatchinformationprovider.cxx b/framework/source/dispatch/dispatchinformationprovider.cxx
index ba8ff65eb171..7352b21e4c8e 100644
--- a/framework/source/dispatch/dispatchinformationprovider.cxx
+++ b/framework/source/dispatch/dispatchinformationprovider.cxx
@@ -138,8 +138,8 @@ css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL DispatchInformati
lInfos[rInfo.Command] = rInfo;
}
}
- catch(const css::uno::RuntimeException& exRun)
- { throw exRun; }
+ catch(const css::uno::RuntimeException&)
+ { throw; }
catch(const css::uno::Exception&)
{ continue; }
}
diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx
index 9e26c30b28ba..4a5dd536d7c0 100644
--- a/framework/source/services/pathsettings.cxx
+++ b/framework/source/services/pathsettings.cxx
@@ -413,12 +413,12 @@ PathSettings::EChangeOp PathSettings::impl_updatePath(const ::rtl::OUString& sPa
// will produce strings with same content (because some variables are redundant!)
impl_subst(aPath, sal_False);
}
- catch(const css::uno::RuntimeException& exRun)
- { throw exRun; }
+ catch(const css::uno::RuntimeException&)
+ { throw; }
catch(const css::container::NoSuchElementException&)
{ eOp = PathSettings::E_REMOVED; }
- catch(const css::uno::Exception& exAny)
- { throw exAny; }
+ catch(const css::uno::Exception&)
+ { throw; }
#ifdef MIGRATE_OLD_USER_PATHES
try
@@ -433,8 +433,8 @@ PathSettings::EChangeOp PathSettings::impl_updatePath(const ::rtl::OUString& sPa
impl_subst(lOldVals, fa_getSubstitution(), sal_False);
impl_mergeOldUserPaths(aPath, lOldVals);
}
- catch(const css::uno::RuntimeException& exRun)
- { throw exRun; }
+ catch(const css::uno::RuntimeException&)
+ { throw; }
// Normal(!) exceptions can be ignored!
// E.g. in case an addon installs a new path, which was not well known for an OOo 1.x installation
// we cant find a value for it inside the "old" configuration. So a NoSuchElementException