summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwptools.cxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-03-08 00:05:32 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-03-08 01:21:25 -0600
commitd634ce9edb6f1df409547715a391ad2eeca99f0c (patch)
tree62a7327a3346bf4a9b70d465315b7a466b03449e /lotuswordpro/source/filter/lwptools.cxx
parent0b83c8ffdcba92be56030b1e205a030d46168cfe (diff)
use 'native' OUString api in lotuswordpro instead of macro and wrappers
Change-Id: Iccb78b59c3de9f29975d10fa4e34232cd3bf2cc3
Diffstat (limited to 'lotuswordpro/source/filter/lwptools.cxx')
-rw-r--r--lotuswordpro/source/filter/lwptools.cxx20
1 files changed, 5 insertions, 15 deletions
diff --git a/lotuswordpro/source/filter/lwptools.cxx b/lotuswordpro/source/filter/lwptools.cxx
index a87fb165e5c9..1b6437cc4493 100644
--- a/lotuswordpro/source/filter/lwptools.cxx
+++ b/lotuswordpro/source/filter/lwptools.cxx
@@ -236,20 +236,10 @@ OUString LwpTools::convertToFileUrl(const OString &fileName)
OUString LwpTools::DateTimeToOUString(LtTm & dt)
{
- OUStringBuffer buf;
- buf.append(dt.tm_year);
- buf.append( A2OUSTR("-") );
- buf.append(dt.tm_mon);
- buf.append( A2OUSTR("-") );
- buf.append(dt.tm_mday);
- buf.append( A2OUSTR("T") );
- buf.append(dt.tm_hour);
- buf.append( A2OUSTR(":") );
- buf.append(dt.tm_min);
- buf.append( A2OUSTR(":") );
- buf.append(dt.tm_sec);
+ OUString aResult = OUString::number(dt.tm_year) + "-" + OUString::number(dt.tm_mon) + "-" + OUString::number(dt.tm_mday) +
+ "T" + OUString::number(dt.tm_hour) + ":" + OUString::number(dt.tm_min) + ":" + OUString::number(dt.tm_sec);
- return buf.makeStringAndClear();
+ return aResult;
}
/**
@@ -609,7 +599,7 @@ XFDateStyle* LwpTools::GetSystemDateStyle(sal_Bool bLongFormat)
}
case '"':
{
- pDateStyle->AddText(OUString(A2OUSTR("'")));
+ pDateStyle->AddText(OUString("'"));
break;
}
default:
@@ -829,7 +819,7 @@ XFTimeStyle* LwpTools::GetSystemTimeStyle()
}
case '"':
{
- pTimeStyle->AddText(OUString(A2OUSTR("'")));
+ pTimeStyle->AddText(OUString("'"));
break;
}
default: