summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-08-10 23:04:54 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-08-10 23:05:50 +0200
commit0410bbafafb4880c9ab5f399c6c5801a4ce93619 (patch)
treea2bb5fd58c497ab91ca0487c882f78d2f6d0b7ef /svtools
parentd7d976c257d4ea8946643e3caff163346da8daa6 (diff)
Some cppcheck cleaning
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index e185705806be..7e606bbbf472 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -387,7 +387,7 @@ long BorderWidthImpl::GuessWidth( long nLine1, long nLine2, long nGap )
bInvalid = true;
double nWidth = 0.0;
- if ( !bInvalid && aToCompare.size() > 0 )
+ if ( (!bInvalid) && (!aToCompare.empty()) )
{
nWidth = *aToCompare.begin();
std::vector< double >::iterator pIt = aToCompare.begin();