diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-19 16:59:40 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-19 17:07:46 +0400 |
commit | d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 (patch) | |
tree | a99079bda02a9d8dd5bd0d54666164f362314c52 /editeng | |
parent | 704c9477039e37b4910db6aa8dd644751dd5e6a5 (diff) |
Get rid of size() == 0
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/txtrange.cxx | 2 | ||||
-rw-r--r-- | editeng/source/outliner/outlobj.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/misc/txtrange.cxx b/editeng/source/misc/txtrange.cxx index f473a18b2adb..f2c828819286 100644 --- a/editeng/source/misc/txtrange.cxx +++ b/editeng/source/misc/txtrange.cxx @@ -409,7 +409,7 @@ void SvxBoundArgs::Calc( const PolyPolygon& rPoly ) } if( !bMultiple ) { - DBG_ASSERT( pLongArr->size() == 0, "I said: Simple!" ); + DBG_ASSERT( pLongArr->empty(), "I said: Simple!" ); if( nAct ) { if( bInner ) diff --git a/editeng/source/outliner/outlobj.cxx b/editeng/source/outliner/outlobj.cxx index 32bec10be139..3578c3a96640 100644 --- a/editeng/source/outliner/outlobj.cxx +++ b/editeng/source/outliner/outlobj.cxx @@ -57,7 +57,7 @@ public: mbIsEditDoc(bIsEditDoc), mnRefCount(0) { - if( (maParagraphDataVector.size() == 0) && (pEditTextObject->GetParagraphCount() != 0) ) + if( maParagraphDataVector.empty() && (pEditTextObject->GetParagraphCount() != 0) ) maParagraphDataVector.resize(pEditTextObject->GetParagraphCount()); } |