summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-28 17:00:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-28 17:00:00 +0000
commit5be1f5dbb5c6d2fbbe4a0bc4ed2e6f403ec3cd81 (patch)
tree5fcd478e31e8fc0c4d73e979bf29d86279eab712
parent79b80671e189882325182c55141c569b6b55e41b (diff)
cppcheck: can reduce the scope of this var
-rw-r--r--xmloff/source/text/txtparae.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 9410c49ca4..2feffad6a9 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -2110,11 +2110,11 @@ void XMLTextParagraphExport::exportParagraph(
("NumberingStartValue"));
- sal_Int32 nStartValue = 0;
-
if (xPropSetInfo->
hasPropertyByName(sNumberingStartValue))
{
+ sal_Int32 nStartValue = 0;
+
xPropSet->getPropertyValue(sNumberingStartValue)
>>= nStartValue;