AllocatorTraits::size can be static after all

Change-Id: If9ce8a094af878497e980cdcfaf11604d613e5b8
This commit is contained in:
Stephan Bergmann
2016-06-28 22:38:57 +02:00
parent 0d3738a258
commit 0d3f9667bb
2 changed files with 2 additions and 7 deletions

View File

@@ -117,12 +117,7 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl)
if (aParentName == "BitmapInfoAccess") {
return true;
}
// can't change it because in debug mode it can't be static
// sal/cpprt/operators_new_delete.cxx
auto dc = loplugin::DeclCheck(pCXXMethodDecl->getParent());
if (dc.Struct("AllocatorTraits").AnonymousNamespace().GlobalNamespace()) {
return true;
}
// in this case, the code is taking the address of the member function
// shell/source/unix/sysshell/recently_used_file_handler.cxx
if (dc.Struct("recently_used_item").AnonymousNamespace().GlobalNamespace())