summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-23 09:15:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-23 11:31:43 +0200
commit983c1146ac80c038feae653e8e3752a72171d6cb (patch)
tree33284a21db19a9e868b751332f35603ac588e70f
parent7ded81e407f9218e19f2f5cdd8e1372ab6edf142 (diff)
actually make OString(OStringLiteral) constructor constexpr
doh! forgot the most important part in commit bca539e889d40e06cb3275442622cb075b2484a2 make OString(OStringLiteral) constructor constexpr Change-Id: I0c13b3b8f33f643fa72c11d8596bab70e863a879 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114529 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--include/rtl/string.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx
index 348a08055d50..98abce8fca53 100644
--- a/include/rtl/string.hxx
+++ b/include/rtl/string.hxx
@@ -337,7 +337,7 @@ public:
@since LibreOffice 7.1
*/
- template<std::size_t N> OString(OStringLiteral<N> const & literal):
+ template<std::size_t N> constexpr OString(OStringLiteral<N> const & literal):
pData(const_cast<rtl_String *>(&literal.str)) {}
template<std::size_t N> OString(OStringLiteral<N> &&) = delete;
/// @endcond