summaryrefslogtreecommitdiff
path: root/include/rtl/ustring.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/rtl/ustring.hxx')
-rw-r--r--include/rtl/ustring.hxx10
1 files changed, 10 insertions, 0 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