[Libreoffice-commits] core.git: include/rtl

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 7 14:59:30 UTC 2020


 include/rtl/string.hxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 0cf956017477ad4f6aaae413eb434ab9b870725d
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Sep 7 15:10:56 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Sep 7 16:58:51 2020 +0200

    Avoid dangling pData when constructing OUString from temporary OUStringLiteral
    
    ...afer 4b9e440c51be3e40326bc90c33ae69885bfb51e4 "Turn OStringLiteral into a
    consteval'ed, static-refcound rtl_String"
    
    Change-Id: I8afab29e9b7477c8a6c519b61d1fd6b3c21589e2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102174
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx
index ca1fd99b7fba..3a95b807c3a0 100644
--- a/include/rtl/string.hxx
+++ b/include/rtl/string.hxx
@@ -299,6 +299,7 @@ public:
     */
     template<std::size_t N> OString(OStringLiteral<N> const & literal):
         pData(const_cast<rtl_String *>(reinterpret_cast<rtl_String const *>(&literal))) {}
+    template<std::size_t N> OString(OStringLiteral<N> &&) = delete;
     /// @endcond
 #endif
 


More information about the Libreoffice-commits mailing list