diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-28 17:00:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-28 17:00:00 +0000 |
commit | 692d3a0dfb00703bda8434b18ea5403a022d0437 (patch) | |
tree | 7b7652f8e92425670592bb3e8123dfe10b6fb93a /xmloff/source/text/txtparae.cxx | |
parent | 5af0529e8aba397d64ecb6e295dd36f70a5c1b5f (diff) |
cppcheck: can reduce the scope of this var
Diffstat (limited to 'xmloff/source/text/txtparae.cxx')
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index d2b68d0e8b71..4e2da753a3f6 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; |