include/vcl/vclptr.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit f7307c6366196940dcdbf6d2bfc23b69b18acb85 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Apr 22 21:53:25 2023 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Apr 23 14:12:49 2023 +0200 cid#1524746 silence Using a moved object Change-Id: I82728c481c721aeb0d70f6bbdf6f0f1b49ea7b8e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150819 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/include/vcl/vclptr.hxx b/include/vcl/vclptr.hxx index 326881edd105..ea2fffe41790 100644 --- a/include/vcl/vclptr.hxx +++ b/include/vcl/vclptr.hxx @@ -201,7 +201,8 @@ public: { // hold it alive for the lifetime of this method ::rtl::Reference<reference_type> aTmp(std::move(m_rInnerRef)); - assert(!m_rInnerRef); // the move ctor above must take care of it + // coverity[use_after_move : SUPPRESS] - the move ctor above must take care of it + assert(!m_rInnerRef); if (aTmp.get()) { aTmp->disposeOnce(); }