diff options
Diffstat (limited to 'xmlsecurity/source/dialogs/resourcemanager.cxx')
-rw-r--r-- | xmlsecurity/source/dialogs/resourcemanager.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/xmlsecurity/source/dialogs/resourcemanager.cxx b/xmlsecurity/source/dialogs/resourcemanager.cxx index d9279b1fa335..8dbb24bec408 100644 --- a/xmlsecurity/source/dialogs/resourcemanager.cxx +++ b/xmlsecurity/source/dialogs/resourcemanager.cxx @@ -62,10 +62,8 @@ namespace XmlSec // String with date and time information (#i20172#) DateTime aDT( GetDateTime( _rDT ) ); const LocaleDataWrapper& rLoDa = GetLocaleData(); - OUStringBuffer sRet( rLoDa.getDate( aDT ) ); - sRet.append( ' ' ); - sRet.append( rLoDa.getTime( aDT ) ); - return sRet.makeStringAndClear(); + + return rLoDa.getDate( aDT ) + " " + rLoDa.getTime( aDT ); } OUString GetDateString( const ::com::sun::star::util::DateTime& _rDT ) @@ -94,10 +92,8 @@ namespace XmlSec s1.append(static_cast<sal_Unicode>(',')); s2.append(static_cast<sal_Unicode>('\n')); } - s1.append(i->second); - s2.append(i->first); - s2.append(sEqual); - s2.append(i->second); + s1.append(i->second + i->first); + s2.append(sEqual + i->second); } return make_pair(s1.makeStringAndClear(), s2.makeStringAndClear()); } |