summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-03-11 17:25:24 +0100
committerMichael Stahl <mstahl@redhat.com>2014-03-11 17:26:42 +0100
commitcecd77cb94d423bb2b7053f7e1a176267eb302d4 (patch)
tree0fcc9fee56a5f2523961b85871ee0060b6315fec /sd
parente69615ccb016de1c64864bbc9cf1bbef9f50c1da (diff)
warning C4702: unreachable code
Change-Id: Ie5fe1348ed325b9de4af9e17846470fdc31067d7
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/stlfamily.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/core/stlfamily.cxx b/sd/source/core/stlfamily.cxx
index 376b2027fd1d..e75c9f11e995 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;
}
}