[Libreoffice-commits] .: sw/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sat Jan 21 00:31:46 PST 2012


 sw/source/filter/ww8/wrtw8esh.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0d5167915b47df7c3e450614ea50d845ba959df3
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Jan 21 09:30:05 2012 +0100

    Fix Possible inefficient checking for 'aChrSetArr' emptiness

diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx
index 3d3cc83..86e9a4a 100644
--- a/sw/source/filter/ww8/wrtw8esh.cxx
+++ b/sw/source/filter/ww8/wrtw8esh.cxx
@@ -888,7 +888,7 @@ void MSWord_SdrAttrIter::NextPara( sal_uInt16 nPar )
 
 rtl_TextEncoding MSWord_SdrAttrIter::GetNextCharSet() const
 {
-    if( aChrSetArr.size() )
+    if( !aChrSetArr.empty() )
         return (rtl_TextEncoding)aChrSetArr[ aChrSetArr.size() - 1 ];
     return eNdChrSet;
 }


More information about the Libreoffice-commits mailing list