include/rtl/stringconcat.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1b9db6c99e5b5f4edb837756e50e949f0ef3a357
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Fri Oct 14 16:03:39 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Sat Oct 15 08:50:07 2022 +0200

    Restrict StringNumberBase::toAsciiUpperCase to rvalues
    
    Change-Id: I2cc4787d0db256337fe740e9cecb96ce7081bffc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141374
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

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);

Reply via email to