From 24ccdd63b7a290a830bd15e552cc25c1981efeb0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 12 Apr 2017 10:55:45 +0200 Subject: [PATCH] loplugin:useuniquptr: Remove no longer needed blacklist entries Change-Id: Ib372d93c5a6e7550ad0d3dc1017fe49d9059146c --- compilerplugins/clang/useuniqueptr.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/compilerplugins/clang/useuniqueptr.cxx b/compilerplugins/clang/useuniqueptr.cxx index ca568c4bf2ef..9b607ecffea3 100644 --- a/compilerplugins/clang/useuniqueptr.cxx +++ b/compilerplugins/clang/useuniqueptr.cxx @@ -89,16 +89,11 @@ bool UseUniquePtr::VisitCXXDestructorDecl(const CXXDestructorDecl* destructorDec if (aFileName.startswith(WORKDIR)) return true; // weird stuff, passing pointers to internal members of struct - if (aFileName.startswith(SRCDIR "/include/jvmfwk/framework.hxx")) - return true; - if (aFileName.startswith(SRCDIR "/jvmfwk/")) + if (aFileName == SRCDIR "/jvmfwk/source/framework.hxx") return true; // passes and stores pointers to member fields if (aFileName.startswith(SRCDIR "/sot/source/sdstor/stgdir.hxx")) return true; - // passes and stores pointers to member fields - if (aFileName.startswith(SRCDIR "/desktop/source/migration/services/jvmfwk.cxx")) - return true; // something platform-specific if (aFileName.startswith(SRCDIR "/hwpfilter/source/htags.h")) return true;