summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-12 13:40:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-13 11:20:23 +0100
commit6191fa0847ac5b27083efe1a8c6cd84d080a638c (patch)
treeb107ce00125d0d204e5c32f6c472e70c73182bb2 /xmloff
parent2e16eaf31c7a4849110020aebd5fbc97a1ab3e99 (diff)
reduce use of UniString ctor from null-terminated unicodearray
Change-Id: I98361309ada084d8f78517ce88f210d785f59cc0
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/xmlnumfi.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx
index 2802c6fbe639..9c825de52115 100644
--- a/xmloff/source/style/xmlnumfi.cxx
+++ b/xmloff/source/style/xmlnumfi.cxx
@@ -1070,8 +1070,7 @@ void SvXMLNumFmtElementContext::EndElement()
{
case XML_TOK_STYLE_TEXT:
if ( rParent.HasLongDoW() &&
- rParent.GetLocaleData().getLongDateDayOfWeekSep() ==
- String( aContent.getStr() ) )
+ aContent.toString().equals(rParent.GetLocaleData().getLongDateDayOfWeekSep()) )
{
// skip separator constant after long day of week
// (NF_KEY_NNNN contains the separator)