diff options
Diffstat (limited to 'connectivity/source/commontools/DateConversion.cxx')
-rw-r--r-- | connectivity/source/commontools/DateConversion.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/connectivity/source/commontools/DateConversion.cxx b/connectivity/source/commontools/DateConversion.cxx index f762c645730f..ffcc94112d17 100644 --- a/connectivity/source/commontools/DateConversion.cxx +++ b/connectivity/source/commontools/DateConversion.cxx @@ -288,10 +288,7 @@ void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant, // and again a special treatment, this time for percent formats if ((NumberFormat::NUMBER == nRealUsedTypeClass) && (NumberFormat::PERCENT == nTypeClass)) { // formatting should be "percent", but the String provides just a simple number -> adjust - OUString sExpanded(rString); - static OUString s_sPercentSymbol( "%" ); - // need a method to add a sal_Unicode to a string, 'til then we use a static string - sExpanded += s_sPercentSymbol; + OUString sExpanded = rString + "%"; fValue = xFormatter->convertStringToNumber(nKeyToUse, sExpanded); } |