diff options
Diffstat (limited to 'editeng/source/items/CustomPropertyField.cxx')
-rw-r--r-- | editeng/source/items/CustomPropertyField.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/items/CustomPropertyField.cxx b/editeng/source/items/CustomPropertyField.cxx index eaad4c4c4db8..463f128ea2f1 100644 --- a/editeng/source/items/CustomPropertyField.cxx +++ b/editeng/source/items/CustomPropertyField.cxx @@ -48,21 +48,21 @@ MetaAction* CustomPropertyField::createBeginComment() const return new MetaCommentAction("FIELD_SEQ_BEGIN"_ostr); } -OUString CustomPropertyField::GetFormatted(uno::Reference<document::XDocumentProperties> const & xDocumentProperties) +const OUString & CustomPropertyField::GetFormatted(uno::Reference<document::XDocumentProperties> const & xDocumentProperties) { if (msName.isEmpty()) - return OUString(); + return EMPTY_OUSTRING; if (!xDocumentProperties.is()) - return OUString(); + return EMPTY_OUSTRING; uno::Reference<beans::XPropertyContainer> xPropertyContainer = xDocumentProperties->getUserDefinedProperties(); if (!xPropertyContainer.is()) - return OUString(); + return EMPTY_OUSTRING; uno::Reference<beans::XPropertySet> xPropertySet(xPropertyContainer, uno::UNO_QUERY); if (!xPropertySet.is()) - return OUString(); + return EMPTY_OUSTRING; uno::Any aAny = xPropertySet->getPropertyValue(msName); if (!aAny.has<OUString>()) - return OUString(); + return EMPTY_OUSTRING; msCurrentPresentation = aAny.get<OUString>(); return msCurrentPresentation; } |