summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLTextMarkImportContext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-03 14:03:54 +0200
committerNoel Grandin <noel@peralex.com>2014-11-05 08:44:19 +0200
commit705c48d32eec0aa5180e60ca157daca4b154e4a3 (patch)
tree97f43496f4b429a2b8d03b1e71cb2a1c33142a15 /xmloff/source/text/XMLTextMarkImportContext.cxx
parentb7d8a58ff2698ffc6e22943f64aa97c5ea253bd9 (diff)
fdo#38835 strip out OUString globals
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
Diffstat (limited to 'xmloff/source/text/XMLTextMarkImportContext.cxx')
-rw-r--r--xmloff/source/text/XMLTextMarkImportContext.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmloff/source/text/XMLTextMarkImportContext.cxx b/xmloff/source/text/XMLTextMarkImportContext.cxx
index 8aaa952bbba9..f8f47206ecb5 100644
--- a/xmloff/source/text/XMLTextMarkImportContext.cxx
+++ b/xmloff/source/text/XMLTextMarkImportContext.cxx
@@ -183,10 +183,10 @@ void XMLTextMarkImportContext::EndElement()
{
SvXMLImportContext::EndElement();
- static const OUString sAPI_reference_mark( "com.sun.star.text.ReferenceMark");
- static const OUString sAPI_bookmark( "com.sun.star.text.Bookmark");
- static const OUString sAPI_fieldmark( "com.sun.star.text.Fieldmark");
- static const OUString sAPI_formfieldmark( "com.sun.star.text.FormFieldmark");
+ static const char sAPI_reference_mark[] = "com.sun.star.text.ReferenceMark";
+ static const char sAPI_bookmark[] = "com.sun.star.text.Bookmark";
+ static const char sAPI_fieldmark[] = "com.sun.star.text.Fieldmark";
+ static const char sAPI_formfieldmark[] = "com.sun.star.text.FormFieldmark";
if (!m_sBookmarkName.isEmpty())
{
@@ -213,7 +213,7 @@ void XMLTextMarkImportContext::EndElement()
// export point bookmark
const Reference<XInterface> xContent(
CreateAndInsertMark(GetImport(),
- (bImportAsField?sAPI_formfieldmark:sAPI_bookmark),
+ (bImportAsField ? OUString(sAPI_formfieldmark) : OUString(sAPI_bookmark)),
m_sBookmarkName,
m_rHelper.GetCursorAsRange()->getStart(),
m_sXmlId) );
@@ -291,7 +291,7 @@ void XMLTextMarkImportContext::EndElement()
// insert reference
const Reference<XInterface> xContent(
CreateAndInsertMark(GetImport(),
- (bImportAsField?sAPI_fieldmark:sAPI_bookmark),
+ (bImportAsField ? OUString(sAPI_fieldmark) : OUString(sAPI_bookmark)),
m_sBookmarkName,
xInsertionCursor,
m_sXmlId) );