[Libreoffice-commits] .: sc/source
Caolán McNamara
caolan at kemper.freedesktop.org
Thu Dec 9 07:12:38 PST 2010
sc/source/core/tool/docoptio.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 37894eda78210a2cf1e73c4c47409188a25f0913
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Dec 9 12:48:08 2010 +0000
cppcheck: can reduce the scope of these variables
diff --git a/sc/source/core/tool/docoptio.cxx b/sc/source/core/tool/docoptio.cxx
index 70486dc..b070f3f 100644
--- a/sc/source/core/tool/docoptio.cxx
+++ b/sc/source/core/tool/docoptio.cxx
@@ -372,7 +372,6 @@ ScDocCfg::ScDocCfg() :
aCompatItem(OUString(RTL_CONSTASCII_USTRINGPARAM(CFGPATH_COMPAT)))
{
sal_Int32 nIntVal = 0;
- double fDoubleVal = 0;
Sequence<OUString> aNames;
Sequence<Any> aValues;
@@ -388,6 +387,7 @@ ScDocCfg::ScDocCfg() :
OSL_ENSURE(aValues.getLength() == aNames.getLength(), "GetProperties failed");
if(aValues.getLength() == aNames.getLength())
{
+ double fDoubleVal = 0;
for(int nProp = 0; nProp < aNames.getLength(); nProp++)
{
DBG_ASSERT(pValues[nProp].hasValue(), "property value missing");
More information about the Libreoffice-commits
mailing list