From 40fd53a2383ba353054ed440c45f2319a9b8efef Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Oct 2016 08:15:21 +0200 Subject: loplugins: extract some common functionality Change-Id: If470e1d9b481c9eda0829aa985152baf8fb46d7a --- compilerplugins/clang/inlinesimplememberfunctions.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compilerplugins/clang/inlinesimplememberfunctions.cxx') diff --git a/compilerplugins/clang/inlinesimplememberfunctions.cxx b/compilerplugins/clang/inlinesimplememberfunctions.cxx index b1515382205a..9048bb4fe480 100644 --- a/compilerplugins/clang/inlinesimplememberfunctions.cxx +++ b/compilerplugins/clang/inlinesimplememberfunctions.cxx @@ -71,8 +71,7 @@ bool InlineSimpleMemberFunctions::VisitCXXMethodDecl(const CXXMethodDecl * funct return true; } // ignore stuff that forms part of the stable URE interface - if (isInUnoIncludeFile(compiler.getSourceManager().getSpellingLoc( - functionDecl->getCanonicalDecl()->getNameInfo().getLoc()))) { + if (isInUnoIncludeFile(functionDecl)) { return true; } // ignore stuff like: -- cgit