summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-19 16:59:40 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-02-19 17:07:46 +0400
commitd30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 (patch)
treea99079bda02a9d8dd5bd0d54666164f362314c52 /desktop
parent704c9477039e37b4910db6aa8dd644751dd5e6a5 (diff)
Get rid of size() == 0
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/registry/dp_backenddb.cxx4
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_misc.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/desktop/source/deployment/registry/dp_backenddb.cxx b/desktop/source/deployment/registry/dp_backenddb.cxx
index 85d07f8414e8..a219f1308c00 100644
--- a/desktop/source/deployment/registry/dp_backenddb.cxx
+++ b/desktop/source/deployment/registry/dp_backenddb.cxx
@@ -296,7 +296,7 @@ void BackendDb::writeVectorOfPair(
css::uno::Reference<css::xml::dom::XNode> const & xParent)
{
try{
- if (vecPairs.size() == 0)
+ if (vecPairs.empty())
return;
const OUString sNameSpace = getDbNSName();
OSL_ASSERT(!sNameSpace.isEmpty());
@@ -413,7 +413,7 @@ void BackendDb::writeSimpleList(
{
try
{
- if (list.size() == 0)
+ if (list.empty())
return;
const OUString sNameSpace = getDbNSName();
const OUString sPrefix(getNSPrefix() + OUSTR(":"));
diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
index 5dba571ad637..0750d38d4d0e 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
@@ -344,7 +344,7 @@ void printf_packages(
{
OSL_ASSERT(allExtensions.size() == vecUnaccepted.size());
- if (allExtensions.size() == 0)
+ if (allExtensions.empty())
{
printf_space( level );
dp_misc::writeConsole("<none>\n");