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/countusersofdefaultparams.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compilerplugins/clang/countusersofdefaultparams.cxx') diff --git a/compilerplugins/clang/countusersofdefaultparams.cxx b/compilerplugins/clang/countusersofdefaultparams.cxx index b6323d054bd0..d17377bc6bd6 100644 --- a/compilerplugins/clang/countusersofdefaultparams.cxx +++ b/compilerplugins/clang/countusersofdefaultparams.cxx @@ -234,8 +234,7 @@ bool CountUsersOfDefaultParams::VisitFunctionDecl( const FunctionDecl* functionD return true; } // ignore stuff that forms part of the stable URE interface - if (isInUnoIncludeFile(compiler.getSourceManager().getSpellingLoc( - functionDecl->getNameInfo().getLoc()))) { + if (isInUnoIncludeFile(functionDecl)) { return true; } if (isa(functionDecl)) { -- cgit