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

New commits:
commit cecd77cb94d423bb2b7053f7e1a176267eb302d4
Author: Michael Stahl <mst...@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;
         }
     }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to