[Libreoffice-commits] core.git: sd/source

Michael Stahl mstahl at redhat.com
Tue Mar 11 09:30:26 PDT 2014


 sd/source/core/stlfamily.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit cecd77cb94d423bb2b7053f7e1a176267eb302d4
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue Mar 11 17:25:24 2014 +0100

    warning C4702: unreachable code
    
    Change-Id: Ie5fe1348ed325b9de4af9e17846470fdc31067d7

diff --git a/sd/source/core/stlfamily.cxx b/sd/source/core/stlfamily.cxx
index 376b202..e75c9f1 100644
--- a/sd/source/core/stlfamily.cxx
+++ b/sd/source/core/stlfamily.cxx
@@ -343,10 +343,9 @@ sal_Bool SAL_CALL SdStyleFamily::hasElements() throw(RuntimeException, std::exce
     else
     {
         SfxStyleSheetIteratorPtr aSSSIterator = boost::make_shared<SfxStyleSheetIterator>(mxPool.get(), mnFamily);
-        for ( SfxStyleSheetBase* pStyle = aSSSIterator->First(); pStyle;
-                                 pStyle = aSSSIterator->Next() )
+        if (aSSSIterator->First())
         {
-                return sal_True;
+            return sal_True;
         }
     }
 


More information about the Libreoffice-commits mailing list