summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/DateConversion.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-02-10 14:48:51 +0100
committerJulien Nabet <serval2412@yahoo.fr>2011-02-10 14:48:51 +0100
commit4d1e8ed389f11c06a4d666c62b13da42e1fd8f7c (patch)
tree6fe1ac97c73cb4719e1bcb444a2ff3187186afee /connectivity/source/commontools/DateConversion.cxx
parent31b0769d2c6d58bbd2e067ee88fd5f45f518182f (diff)
Some cppcheck cleaning
Diffstat (limited to 'connectivity/source/commontools/DateConversion.cxx')
-rw-r--r--connectivity/source/commontools/DateConversion.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/commontools/DateConversion.cxx b/connectivity/source/commontools/DateConversion.cxx
index 56ed6748368d..a26a296081c7 100644
--- a/connectivity/source/commontools/DateConversion.cxx
+++ b/connectivity/source/commontools/DateConversion.cxx
@@ -252,7 +252,6 @@ void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant,
sal_Int16 nFieldType,
sal_Int16 nKeyType) throw(::com::sun::star::lang::IllegalArgumentException)
{
- double fValue = 0;
if (rString.getLength())
{
// Muss der String formatiert werden?
@@ -264,7 +263,7 @@ void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant,
// wirft convertStringToNumber eine NotNumericException
try
{
- fValue = xFormatter->convertStringToNumber(nKeyToUse, rString);
+ double fValue = xFormatter->convertStringToNumber(nKeyToUse, rString);
sal_Int32 nRealUsedKey = xFormatter->detectNumberFormat(0, rString);
if (nRealUsedKey != nKeyToUse)
nRealUsedTypeClass = getNumberFormatType(xFormatter, nRealUsedKey) & ~NumberFormat::DEFINED;