[Libreoffice-commits] .: xmloff/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Nov 28 09:00:17 PST 2010
xmloff/source/text/txtparae.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5be1f5dbb5c6d2fbbe4a0bc4ed2e6f403ec3cd81
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Nov 28 17:00:00 2010 +0000
cppcheck: can reduce the scope of this var
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 9410c49..2feffad 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;
More information about the Libreoffice-commits
mailing list