summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviewsf.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-20 21:45:16 +0100
committerJulien Nabet <serval2412@yahoo.fr>2014-12-21 20:19:32 +0100
commitfb7c18884223f08818b44a9953b55c69a029c71c (patch)
tree41d11ccc6603ccb1a5e48512e012e58db792157a /sd/source/ui/view/drviewsf.cxx
parent17fc7aa3b8fcd731fb05b5e17e23ee984d166a8f (diff)
fdo#39440 sd: reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I14107ca24aa98f4111f542c3999866eb1a93a72b
Diffstat (limited to 'sd/source/ui/view/drviewsf.cxx')
-rw-r--r--sd/source/ui/view/drviewsf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviewsf.cxx b/sd/source/ui/view/drviewsf.cxx
index 1fe47f938dea..665e830e095a 100644
--- a/sd/source/ui/view/drviewsf.cxx
+++ b/sd/source/ui/view/drviewsf.cxx
@@ -601,10 +601,10 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
}
if ( nCount == 1 )
{
- bool bBullets = false;
const SvxNumberFormat* pNumFmt = pNumRule->Get(nCurLevel);
if ( pNumFmt )
{
+ bool bBullets = false;
switch(pNumFmt->GetNumberingType())
{
case SVX_NUM_CHAR_SPECIAL: