summaryrefslogtreecommitdiffstats
path: root/include/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-20 19:27:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-20 21:28:23 +0100
commit31cd6fd0f3c856a81a03d0229de1c4d10442844f (patch)
treeade8e132e705ef54984b83bba3791af421cb5e0f /include/rtl
parentReplace deprecated gtk_hbox_new/gtk_vbox_new with gtk_box_new (diff)
downloadcore-31cd6fd0f3c856a81a03d0229de1c4d10442844f.tar.gz
core-31cd6fd0f3c856a81a03d0229de1c4d10442844f.zip
Make OStringLiteral ctor non-explicit
a5bdf3c606b562a2af3dd4e4162b734abb1cb24c "Make O[U]StringLiteral ctor explicit" made both the OStringLiteral and the OUStringLiteral ctor explicit, and 87707670c993794ab12b0fad0f048f11429269c2 "Make OUStringLiteral more useful" made (only) the OUStringLiteral ctor non-explicit again. There appears to be no good reason to keep the OStringLiteral ctor explict, and the current sitation lead to OUStringLiteral v = u"..."; being valid while OStringLiteral v = "..."; was not (and needed to be written as OStringLieral v("..."); instead). Change-Id: Ide26917efabb6eca31c19f64652ee87460e6dd1a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108056 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 e5e7f5716b74..4b4c683d4b6d 100644
--- a/include/rtl/string.hxx
+++ b/include/rtl/string.hxx
@@ -89,7 +89,7 @@ public:
#else
constexpr
#endif
- explicit OStringLiteral(char const (&literal)[N]) {
+ OStringLiteral(char const (&literal)[N]) {
assertLayout();
assert(literal[N - 1] == '\0');
//TODO: Use C++20 constexpr std::copy_n (P0202R3):