summaryrefslogtreecommitdiff
path: root/include/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-11 12:32:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-11 17:08:44 +0200
commit019d969d73efcb4ad876b294c968761ee8ed9733 (patch)
tree6208a75c160da2525c53a76fb3be5e2717e4c68c /include/rtl
parentd09785691373009a72cef14fd67610404c8d6022 (diff)
The other OStringLiteral ctor should be non-explicit too
It had been missed by 31cd6fd0f3c856a81a03d0229de1c4d10442844f "Make OStringLiteral ctor non-explicit", and now prevented u8"..."_ostr from compiling. Change-Id: Ifb214fba0957b0d26b11daae6190ffa9d21713f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157823 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/rtl')
-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 bb67c2f46354..a9038fc3cef0 100644
--- a/include/rtl/string.hxx
+++ b/include/rtl/string.hxx
@@ -109,7 +109,7 @@ public:
#else
constexpr
#endif
- explicit OStringLiteral(char8_t const (&literal)[N]) {
+ OStringLiteral(char8_t const (&literal)[N]) {
assertLayout();
assert(literal[N - 1] == '\0');
//TODO: Use C++20 constexpr std::copy_n (P0202R3):