summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-02 17:45:09 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:49 +0200
commitb88e1f5cd1f1a5f963240bf9ed4e2a05f17a7511 (patch)
tree0d41687e95e9c4eaf88f53371efb8819909ba44b
parent3251b313193196c9512c950da740757c46a07ddd (diff)
cppcheck reduce scope of var in sfx2/... dinfdlg.cxx
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 40467b533940..43b3436c34ea 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -1965,7 +1965,6 @@ bool CustomPropertiesWindow::IsLineValid( CustomPropertyLine* pLine ) const
if ( sValue.Len() == 0 )
return true;
- double fDummy = 0.0;
sal_uInt32 nIndex = 0xFFFFFFFF;
if ( CUSTOM_TYPE_NUMBER == nType )
nIndex = const_cast< SvNumberFormatter& >(
@@ -1977,6 +1976,7 @@ bool CustomPropertiesWindow::IsLineValid( CustomPropertyLine* pLine ) const
if ( nIndex != 0xFFFFFFFF )
{
sal_uInt32 nTemp = nIndex;
+ double fDummy = 0.0;
bIsValid = const_cast< SvNumberFormatter& >(
m_aNumberFormatter ).IsNumberFormat( sValue, nIndex, fDummy ) != sal_False;
if ( bIsValid && nTemp != nIndex )