summaryrefslogtreecommitdiff
path: root/xmloff/source/text
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text')
-rw-r--r--xmloff/source/text/XMLTextFrameContext.cxx2
-rw-r--r--xmloff/source/text/XMLTextMarkImportContext.cxx4
-rw-r--r--xmloff/source/text/txtlists.cxx8
3 files changed, 7 insertions, 7 deletions
diff --git a/xmloff/source/text/XMLTextFrameContext.cxx b/xmloff/source/text/XMLTextFrameContext.cxx
index 5c293c7670c2..27d5d65b0374 100644
--- a/xmloff/source/text/XMLTextFrameContext.cxx
+++ b/xmloff/source/text/XMLTextFrameContext.cxx
@@ -420,7 +420,7 @@ public:
const OUString& GetOrigName() const { return m_sOrigName; }
css::text::TextContentAnchorType GetAnchorType() const { return eAnchorType; }
- OUString GetMimeType() const { return sMimeType; }
+ const OUString & GetMimeType() const { return sMimeType; }
const css::uno::Reference < css::beans::XPropertySet >& GetPropSet() const { return xPropSet; }
};
diff --git a/xmloff/source/text/XMLTextMarkImportContext.cxx b/xmloff/source/text/XMLTextMarkImportContext.cxx
index 2803fd0b5f30..392ef6c440f0 100644
--- a/xmloff/source/text/XMLTextMarkImportContext.cxx
+++ b/xmloff/source/text/XMLTextMarkImportContext.cxx
@@ -126,7 +126,7 @@ SvXMLEnumMapEntry<lcl_MarkType> const lcl_aMarkTypeMap[] =
};
-static OUString lcl_getFormFieldmarkName(std::u16string_view name)
+static const OUString & lcl_getFormFieldmarkName(std::u16string_view name)
{
if (name == ODF_FORMCHECKBOX ||
name == u"msoffice.field.FORMCHECKBOX" ||
@@ -136,7 +136,7 @@ static OUString lcl_getFormFieldmarkName(std::u16string_view name)
name == u"ecma.office-open-xml.field.FORMDROPDOWN")
return ODF_FORMDROPDOWN;
else
- return OUString();
+ return EMPTY_OUSTRING;
}
static OUString lcl_getFieldmarkName(OUString const& name)
diff --git a/xmloff/source/text/txtlists.cxx b/xmloff/source/text/txtlists.cxx
index 80e1abd490f2..4cbd7874050b 100644
--- a/xmloff/source/text/txtlists.cxx
+++ b/xmloff/source/text/txtlists.cxx
@@ -156,7 +156,7 @@ bool XMLTextListsHelper::IsListProcessed( const OUString& sListId ) const
return mpProcessedLists->find( sListId ) != mpProcessedLists->end();
}
-OUString XMLTextListsHelper::GetListStyleOfProcessedList(
+const OUString & XMLTextListsHelper::GetListStyleOfProcessedList(
const OUString& sListId ) const
{
if ( mpProcessedLists )
@@ -168,10 +168,10 @@ OUString XMLTextListsHelper::GetListStyleOfProcessedList(
}
}
- return OUString();
+ return EMPTY_OUSTRING;
}
-OUString XMLTextListsHelper::GetContinueListIdOfProcessedList(
+const OUString & XMLTextListsHelper::GetContinueListIdOfProcessedList(
const OUString& sListId ) const
{
if ( mpProcessedLists )
@@ -183,7 +183,7 @@ OUString XMLTextListsHelper::GetContinueListIdOfProcessedList(
}
}
- return OUString();
+ return EMPTY_OUSTRING;
}