summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-05-22 11:45:39 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-05-22 12:50:49 +0200
commit4f51d28a6d5412e605ccf9356b3b11bb51553e0e (patch)
tree23eea827964bbe363c5cc369735af60ed87e01fa /dbaccess
parent2763456851bc46c26d7a23625243897ee54f240d (diff)
cppcheck: The scope of the variable 'fOutNumber' can be reduced
Change-Id: Ifece039a99f9796d3d41fdf9fae128ad2c2f7c44
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/misc/DExport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/misc/DExport.cxx b/dbaccess/source/ui/misc/DExport.cxx
index 6b89dfabd25e..f3978ebf0684 100644
--- a/dbaccess/source/ui/misc/DExport.cxx
+++ b/dbaccess/source/ui/misc/DExport.cxx
@@ -410,7 +410,6 @@ void ODatabaseExport::insertValueIntoColumn()
sal_Int16 ODatabaseExport::CheckString(const OUString& aCheckToken, sal_Int16 _nOldNumberFormat)
{
- double fOutNumber = 0.0;
sal_Int16 nNumberFormat = 0;
try
@@ -421,6 +420,7 @@ sal_Int16 ODatabaseExport::CheckString(const OUString& aCheckToken, sal_Int16 _n
ensureFormatter();
if ( m_pFormatter && !m_sNumToken.isEmpty() )
{
+ double fOutNumber = 0.0;
LanguageType eNumLang;
sal_uInt32 nFormatKey(0);
fOutNumber = SfxHTMLParser::GetTableDataOptionsValNum(nFormatKey,eNumLang,m_sTextToken,m_sNumToken,*m_pFormatter);