diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-08-10 23:04:54 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-08-10 23:05:50 +0200 |
commit | 0410bbafafb4880c9ab5f399c6c5801a4ce93619 (patch) | |
tree | a2bb5fd58c497ab91ca0487c882f78d2f6d0b7ef /svtools | |
parent | d7d976c257d4ea8946643e3caff163346da8daa6 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 2 |
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(); |