summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLTextMarkImportContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/XMLTextMarkImportContext.cxx')
-rw-r--r--xmloff/source/text/XMLTextMarkImportContext.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmloff/source/text/XMLTextMarkImportContext.cxx b/xmloff/source/text/XMLTextMarkImportContext.cxx
index 5a3a737a53..0432046e28 100644
--- a/xmloff/source/text/XMLTextMarkImportContext.cxx
+++ b/xmloff/source/text/XMLTextMarkImportContext.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -64,6 +65,8 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::xml::sax;
using namespace ::xmloff::token;
+using rtl::OUString;
+
XMLFieldParamImportContext::XMLFieldParamImportContext(
SvXMLImport& rImport,
@@ -125,7 +128,7 @@ enum lcl_MarkType { TypeReference, TypeReferenceStart, TypeReferenceEnd,
TypeFieldmark, TypeFieldmarkStart, TypeFieldmarkEnd
};
-static SvXMLEnumMapEntry __READONLY_DATA lcl_aMarkTypeMap[] =
+static SvXMLEnumMapEntry const lcl_aMarkTypeMap[] =
{
{ XML_REFERENCE_MARK, TypeReference },
{ XML_REFERENCE_MARK_START, TypeReferenceStart },
@@ -183,7 +186,7 @@ void XMLTextMarkImportContext::StartElement(
{
if (m_sBookmarkName.getLength() == 0)
{
- m_sBookmarkName = ::rtl::OUString::createFromAscii("Unknown");
+ m_sBookmarkName = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Unknown"));
}
m_rHelper.pushFieldCtx( m_sBookmarkName, m_sFieldName );
}
@@ -483,3 +486,4 @@ sal_Bool XMLTextMarkImportContext::FindName(
return bNameOK;
}
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */