Kaydet (Commit) 682899e3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

CXXDestructorDecl is already handled

...a few lines up, together with CXXConstructorDecl

Change-Id: Id9afd4d3936b2efb92de3c6ab950da78d876a5a8
üst a796ca45
...@@ -85,9 +85,6 @@ bool UnnecessaryOverride::VisitCXXMethodDecl(const CXXMethodDecl* methodDecl) ...@@ -85,9 +85,6 @@ bool UnnecessaryOverride::VisitCXXMethodDecl(const CXXMethodDecl* methodDecl)
return true; return true;
} }
} }
if (dyn_cast<CXXDestructorDecl>(methodDecl)) {
return true;
}
// sometimes the disambiguation happens in a base class // sometimes the disambiguation happens in a base class
StringRef aFileName = compiler.getSourceManager().getFilename(compiler.getSourceManager().getSpellingLoc(methodDecl->getLocStart())); StringRef aFileName = compiler.getSourceManager().getFilename(compiler.getSourceManager().getSpellingLoc(methodDecl->getLocStart()));
if (aFileName == SRCDIR "/comphelper/source/property/propertycontainer.cxx") if (aFileName == SRCDIR "/comphelper/source/property/propertycontainer.cxx")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment