summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-09-24 21:32:49 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-09-25 20:45:19 +0400
commit4f850e065632dc56d0c76bbbe23c3f44d1a7872d (patch)
treed5ef98671f2aff276b7323ba7f3e8b7f09bce207 /xmlsecurity
parent57bd5cf70a875db4ec50761c6e53f4b478c10372 (diff)
String -> OUString
Change-Id: I252675bf223b8a14dff2b4bcdbfd926979e56dc3
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/helper/xsecctl.cxx41
1 files changed, 19 insertions, 22 deletions
diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx
index 8037ef9ddf5b..56f4df3e838f 100644
--- a/xmlsecurity/source/helper/xsecctl.cxx
+++ b/xmlsecurity/source/helper/xsecctl.cxx
@@ -30,7 +30,6 @@
#include <xmloff/attrlist.hxx>
#include <rtl/math.hxx>
-#include <tools/string.hxx>
namespace cssu = com::sun::star::uno;
namespace cssl = com::sun::star::lang;
@@ -112,42 +111,40 @@ sal_Bool XSecController::convertNumber( sal_Int32& rValue,
void XSecController::convertDateTime( ::rtl::OUStringBuffer& rBuffer,
const com::sun::star::util::DateTime& rDateTime )
{
- String aString( String::CreateFromInt32( rDateTime.Year ) );
- aString += '-';
+ rBuffer.append((sal_Int32) rDateTime.Year);
+ rBuffer.append('-');
if( rDateTime.Month < 10 )
- aString += '0';
- aString += String::CreateFromInt32( rDateTime.Month );
- aString += '-';
+ rBuffer.append('0');
+ rBuffer.append((sal_Int32) rDateTime.Month);
+ rBuffer.append('-');
if( rDateTime.Day < 10 )
- aString += '0';
- aString += String::CreateFromInt32( rDateTime.Day );
+ rBuffer.append('0');
+ rBuffer.append((sal_Int32) rDateTime.Day);
if( rDateTime.Seconds != 0 ||
rDateTime.Minutes != 0 ||
rDateTime.Hours != 0 )
{
- aString += 'T';
+ rBuffer.append('T');
if( rDateTime.Hours < 10 )
- aString += '0';
- aString += String::CreateFromInt32( rDateTime.Hours );
- aString += ':';
+ rBuffer.append('0');
+ rBuffer.append((sal_Int32) rDateTime.Hours);
+ rBuffer.append(':');
if( rDateTime.Minutes < 10 )
- aString += '0';
- aString += String::CreateFromInt32( rDateTime.Minutes );
- aString += ':';
+ rBuffer.append('0');
+ rBuffer.append((sal_Int32) rDateTime.Minutes);
+ rBuffer.append(':');
if( rDateTime.Seconds < 10 )
- aString += '0';
- aString += String::CreateFromInt32( rDateTime.Seconds );
+ rBuffer.append('0');
+ rBuffer.append((sal_Int32) rDateTime.Seconds);
if ( rDateTime.HundredthSeconds > 0)
{
- aString += ',';
+ rBuffer.append(',');
if (rDateTime.HundredthSeconds < 10)
- aString += '0';
- aString += String::CreateFromInt32( rDateTime.HundredthSeconds );
+ rBuffer.append('0');
+ rBuffer.append((sal_Int32) rDateTime.HundredthSeconds);
}
}
-
- rBuffer.append( aString );
}
/** convert ISO Date String to util::DateTime */