diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2010-11-28 01:28:16 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-27 20:41:06 +0000 |
commit | ae85bf7dffc0e89fc0b2e109cd9104faad6abb00 (patch) | |
tree | 2f536a3e328c6c10c253954865016830f0fb566f /dbaccess/source/ui/misc/TokenWriter.cxx | |
parent | 580adf6efcb7096ed082efcb3374d69c4326c88c (diff) |
cppcheck: reduce the scope of variables
Diffstat (limited to 'dbaccess/source/ui/misc/TokenWriter.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/TokenWriter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx index 93f46a8cdf62..311eec0c00ed 100644 --- a/dbaccess/source/ui/misc/TokenWriter.cxx +++ b/dbaccess/source/ui/misc/TokenWriter.cxx @@ -1005,13 +1005,13 @@ void OHTMLImportExport::WriteCell( sal_Int32 nFormat,sal_Int32 nWidthPixel,sal_I aStrTD = aStrTD + "="; aStrTD = aStrTD + pChar; - double fVal = 0.0; - Reference< ::com::sun::star::util::XNumberFormatsSupplier > xSupplier = m_xFormatter->getNumberFormatsSupplier(); SvNumberFormatsSupplierObj* pSupplierImpl = SvNumberFormatsSupplierObj::getImplementation( xSupplier ); SvNumberFormatter* pFormatter = pSupplierImpl ? pSupplierImpl->GetNumberFormatter() : NULL; if(pFormatter) { + double fVal = 0.0; + try { fVal = m_xFormatter->convertStringToNumber(nFormat,rValue); |