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/inlinesimplememberfunctions.cxx | |
parent | 9d8d2e0787b8d866a651bcb9778393fb080ab6e8 (diff) |
loplugins: extract some common functionality
Change-Id: If470e1d9b481c9eda0829aa985152baf8fb46d7a
Diffstat (limited to 'compilerplugins/clang/inlinesimplememberfunctions.cxx')
-rw-r--r-- | compilerplugins/clang/inlinesimplememberfunctions.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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: |