summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-01-21 19:57:19 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-01-21 19:58:46 +0100
commit22da27d9ddcdacaef21d667b0777052b7e817b9a (patch)
treee72e427eb7b6934b796179ed3e49ca4a8c8734a6 /svtools
parentImprove checking for emptiness (while) (diff)
downloadcore-22da27d9ddcdacaef21d667b0777052b7e817b9a.tar.gz
core-22da27d9ddcdacaef21d667b0777052b7e817b9a.zip
Improve checking for emptiness
Diffstat (limited to 'svtools')
-rw-r--r--svtools/bmpmaker/bmpcore.cxx2
-rw-r--r--svtools/source/filter/wmf/winmtf.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svtools/bmpmaker/bmpcore.cxx b/svtools/bmpmaker/bmpcore.cxx
index fd438ce980cb..5209a923d160 100644
--- a/svtools/bmpmaker/bmpcore.cxx
+++ b/svtools/bmpmaker/bmpcore.cxx
@@ -91,7 +91,7 @@ void BmpCreator::ImplCreate( const ::std::vector< DirEntry >& rInDirs,
if( pCollectStm )
pCollectStm->Seek( STREAM_SEEK_TO_END );
- if( rInDirs.size() )
+ if( !rInDirs.empty() )
{
ByteString aLine;
String aInfo, aPrefix, aName( rName ), aString;
diff --git a/svtools/source/filter/wmf/winmtf.cxx b/svtools/source/filter/wmf/winmtf.cxx
index 3ae1dff17dc3..090886e82678 100644
--- a/svtools/source/filter/wmf/winmtf.cxx
+++ b/svtools/source/filter/wmf/winmtf.cxx
@@ -2178,7 +2178,7 @@ void WinMtfOutput::Push() // !! to be able to access the o
void WinMtfOutput::Pop()
{
// Die aktuellen Daten vom Stack holen
- if( vSaveStack.size() )
+ if( !vSaveStack.empty() )
{
// Die aktuelle Daten auf dem Stack sichern
SaveStructPtr pSave( vSaveStack.back() );