diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-18 08:15:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-18 08:51:07 +0200 |
commit | 40fd53a2383ba353054ed440c45f2319a9b8efef (patch) | |
tree | d0bc0d68101b51d11b70dc8e057bbb722b893911 /compilerplugins/clang/countusersofdefaultparams.cxx | |
parent | 9d8d2e0787b8d866a651bcb9778393fb080ab6e8 (diff) |
loplugins: extract some common functionality
Change-Id: If470e1d9b481c9eda0829aa985152baf8fb46d7a
Diffstat (limited to 'compilerplugins/clang/countusersofdefaultparams.cxx')
-rw-r--r-- | compilerplugins/clang/countusersofdefaultparams.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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<CXXDestructorDecl>(functionDecl)) { |