[Libreoffice-commits] core.git: editeng/source
Tor Lillqvist
tml at collabora.com
Tue Nov 26 09:54:54 PST 2013
editeng/source/outliner/outliner.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit f89712a13119e935dd96f38097ee746b15bb7ccb
Author: Tor Lillqvist <tml at collabora.com>
Date: Tue Nov 26 19:51:47 2013 +0200
WaE: unreachable code
Change-Id: Iee5fa84eb2335efa7d7f7cb28b8efdecf9366592
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index 0d3e5ac..137267a 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -1477,6 +1477,7 @@ sal_Bool Outliner::HasChildren( Paragraph* pParagraph ) const
bool Outliner::ImplHasNumberFormat( sal_Int32 nPara ) const
{
return GetNumberFormat(nPara) != 0;
+#if 0 // The below code is obviously unreachable
if ( GetNumberFormat(nPara) )
{
const SfxBoolItem& rBulletState = (const SfxBoolItem&) pEditEngine->GetParaAttrib( nPara, EE_PARA_BULLETSTATE );
@@ -1484,6 +1485,7 @@ bool Outliner::ImplHasNumberFormat( sal_Int32 nPara ) const
}
else
return sal_False;
+#endif
}
const SvxNumberFormat* Outliner::GetNumberFormat( sal_Int32 nPara ) const
More information about the Libreoffice-commits
mailing list