summaryrefslogtreecommitdiffstats
path: root/editeng/source/items/numitem.cxx
diff options
context:
space:
mode:
authorMichaël Lefèvre <lefevre00@yahoo.fr>2015-09-21 15:11:57 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-09-23 07:29:33 +0000
commit92c8d74c543aa94cd512369072975dca7006d5b3 (patch)
treeeb7fe0edfa601a3062f3756274b26502021cdf69 /editeng/source/items/numitem.cxx
parenttdf#92124 DOCX import: don't add a dummy Suffix for an empty LabelFollowedBy (diff)
downloadcore-92c8d74c543aa94cd512369072975dca7006d5b3.tar.gz
core-92c8d74c543aa94cd512369072975dca7006d5b3.zip
CppCheck : reduce variables scope
Change-Id: Ief402017b693a4337f330fb07bb7a6dc6e749f72 Reviewed-on: https://gerrit.libreoffice.org/18753 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng/source/items/numitem.cxx')
-rw-r--r--editeng/source/items/numitem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx
index 48264095dd97..834d5f44e26d 100644
--- a/editeng/source/items/numitem.cxx
+++ b/editeng/source/items/numitem.cxx
@@ -870,9 +870,9 @@ bool SvxNumRule::UnLinkGraphics()
{
SvxNumberFormat aFmt(GetLevel(i));
const SvxBrushItem* pBrush = aFmt.GetBrush();
- const Graphic* pGraphic = NULL;
if(SVX_NUM_BITMAP == aFmt.GetNumberingType())
{
+ const Graphic* pGraphic = NULL;
if(pBrush &&
!pBrush->GetGraphicLink().isEmpty() &&
0 != (pGraphic = pBrush->GetGraphic()))