summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-10-23 08:56:26 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-11-03 20:24:26 -0500
commitc5e5699c80cfb32a164696a2c5144b5ccb0a91a9 (patch)
tree092ef3ebac013359989862b5983bf823018c71e9
parent6f978fa97760206baa9f78b917a9e20c7a489929 (diff)
svformatter already accept OUString input
Change-Id: Icca8c40db4a4449876e115a0746319f3f893e846
-rw-r--r--basic/source/runtime/runtime.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 552313163d2a..84e320fe4429 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -392,14 +392,12 @@ void SbiInstance::PrepareNumberFormatter( SvNumberFormatter*& rpNumberFormatter,
case YMD: aDateStr = "JJJJ.MM.TT"; break;
default: aDateStr = "MM.TT.JJJJ"; break;
}
- String aStr( aDateStr );
- rpNumberFormatter->PutandConvertEntry( aStr, nCheckPos, nType,
+ rpNumberFormatter->PutandConvertEntry( aDateStr, nCheckPos, nType,
rnStdDateIdx, LANGUAGE_GERMAN, eLangType );
nCheckPos = 0;
OUString aStrHHMMSS(" HH:MM:SS");
aDateStr += aStrHHMMSS;
- aStr = aDateStr;
- rpNumberFormatter->PutandConvertEntry( aStr, nCheckPos, nType,
+ rpNumberFormatter->PutandConvertEntry( aDateStr, nCheckPos, nType,
rnStdDateTimeIdx, LANGUAGE_GERMAN, eLangType );
}