diff --git a/compilerplugins/clang/vclwidgets.cxx b/compilerplugins/clang/vclwidgets.cxx index 77a84769a27d..2e7d4eb86fa3 100644 --- a/compilerplugins/clang/vclwidgets.cxx +++ b/compilerplugins/clang/vclwidgets.cxx @@ -184,7 +184,7 @@ bool VCLWidgets::VisitCXXDestructorDecl(const CXXDestructorDecl* pCXXDestructorD << pCXXDestructorDecl->getSourceRange(); return true; } - // check that the destructor for a OutputDevice subclass does nothing except call into the dispose() method + // check that the destructor for a OutputDevice subclass does nothing except call into the disposeOnce() method bool ok = false; if (pCompoundStatement && pCompoundStatement->size() == 1) { const CXXMemberCallExpr *pCallExpr = dyn_cast(*pCompoundStatement->body_begin());