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