summaryrefslogtreecommitdiff
path: root/include/rtl/stringconcat.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-10-14 16:03:39 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-10-15 08:50:07 +0200
commit1b9db6c99e5b5f4edb837756e50e949f0ef3a357 (patch)
treebe3f92047b462f8a7c4efbcb07de781f81a45855 /include/rtl/stringconcat.hxx
parentc809867f3ee92a8eb36cbab840bd6d6c5b3b1c26 (diff)
Restrict StringNumberBase::toAsciiUpperCase to rvalues
Change-Id: I2cc4787d0db256337fe740e9cecb96ce7081bffc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141374 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/rtl/stringconcat.hxx')
-rw-r--r--include/rtl/stringconcat.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtl/stringconcat.hxx b/include/rtl/stringconcat.hxx
index 24dabe15c0bb..4d4eccd60ba4 100644
--- a/include/rtl/stringconcat.hxx
+++ b/include/rtl/stringconcat.hxx
@@ -334,7 +334,7 @@ template <typename C, typename Number, std::size_t nBufSize> struct StringNumber
// so implement that one also here, to avoid having to explicitly convert
// to O(U)String in all such places
const C* getStr() const SAL_RETURNS_NONNULL { return buf; }
- StringNumberBase&& toAsciiUpperCase()
+ StringNumberBase&& toAsciiUpperCase() &&
{
if constexpr (sizeof(C) == sizeof(char))
rtl_str_toAsciiUpperCase_WithLength(buf, length);