include/rtl/string.hxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 0cf956017477ad4f6aaae413eb434ab9b870725d Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Sep 7 15:10:56 2020 +0200 Commit: Stephan Bergmann <sberg...@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 <sberg...@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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits