summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework/configuration
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-05-08 10:47:35 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-05-08 10:47:35 +0200
commitd3a0593ee14d77a311bd4f83c2de53ffb1eb07ae (patch)
tree4475c6e492c8e386bfbdcd6dee620c524cc82d49 /sd/source/ui/framework/configuration
parente8f7f4c38326d7113df2ad898ff864f480336341 (diff)
Some cppcheck cleaning
Diffstat (limited to 'sd/source/ui/framework/configuration')
-rw-r--r--sd/source/ui/framework/configuration/ConfigurationUpdater.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx
index f616b57d271b..7e12a24b4300 100644
--- a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx
+++ b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx
@@ -257,7 +257,7 @@ void ConfigurationUpdater::CleanRequestedConfiguration (void)
// Request the deactivation of pure anchors that have no child.
vector<Reference<XResourceId> > aResourcesToDeactivate;
CheckPureAnchors(mxRequestedConfiguration, aResourcesToDeactivate);
- if (aResourcesToDeactivate.size() > 0)
+ if (!aResourcesToDeactivate.empty())
{
Reference<XConfigurationController> xCC (
mxControllerManager->getConfigurationController());
@@ -328,7 +328,7 @@ void ConfigurationUpdater::UpdateCore (const ConfigurationClassifier& rClassifie
// Deactivate pure anchors that have no child.
vector<Reference<XResourceId> > aResourcesToDeactivate;
CheckPureAnchors(mxCurrentConfiguration, aResourcesToDeactivate);
- if (aResourcesToDeactivate.size() > 0)
+ if (!aResourcesToDeactivate.empty())
mpResourceManager->DeactivateResources(aResourcesToDeactivate, mxCurrentConfiguration);
}
catch(const RuntimeException&)