diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/rtl/ustring.hxx | 10 | ||||
-rw-r--r-- | include/xmloff/maptype.hxx | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx index 8272cdb22c55..b03978c7d625 100644 --- a/include/rtl/ustring.hxx +++ b/include/rtl/ustring.hxx @@ -3987,6 +3987,16 @@ struct hash<::rtl::OUString> } +#if !(defined _MSC_VER && _MSC_VER <= 1929 && defined _MANAGED) +/** + * static empty string object, handy for returning from functions where the function is + * returning a "const OUString &" + * + * @since LibreOffice 25.2 + */ +static inline constexpr ::rtl::OUString EMPTY_OUSTRING = u""_ustr; +#endif + #endif /// @endcond diff --git a/include/xmloff/maptype.hxx b/include/xmloff/maptype.hxx index f15ef3d38002..704c0ae0783d 100644 --- a/include/xmloff/maptype.hxx +++ b/include/xmloff/maptype.hxx @@ -99,8 +99,6 @@ struct XMLPropertyMapEntry */ bool mbImportOnly; - static constexpr OUString EMPTY{u""_ustr}; - constexpr XMLPropertyMapEntry( const OUString& sApiName, sal_uInt16 nNameSpace, @@ -119,7 +117,7 @@ struct XMLPropertyMapEntry /// used to mark the end of the array constexpr XMLPropertyMapEntry(std::nullptr_t) : - msApiName(EMPTY), + msApiName(EMPTY_OUSTRING), meXMLName(xmloff::token::XML_TOKEN_INVALID), mnNameSpace(0), mnType(0), mnContextId(0), mnEarliestODFVersionForExport(SvtSaveOptions::ODFSVER_010), mbImportOnly(false) |