summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/nullptr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/nullptr.cxx')
-rw-r--r--compilerplugins/clang/nullptr.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/compilerplugins/clang/nullptr.cxx b/compilerplugins/clang/nullptr.cxx
index 577a95715118..bcfb88cb6f66 100644
--- a/compilerplugins/clang/nullptr.cxx
+++ b/compilerplugins/clang/nullptr.cxx
@@ -230,8 +230,9 @@ bool Nullptr::TraverseLinkageSpecDecl(LinkageSpecDecl * decl) {
}
bool Nullptr::isInLokIncludeFile(SourceLocation spellingLocation) const {
- return compiler.getSourceManager().getFilename(spellingLocation)
- .startswith(SRCDIR "/include/LibreOfficeKit/");
+ return loplugin::hasPathnamePrefix(
+ compiler.getSourceManager().getFilename(spellingLocation),
+ SRCDIR "/include/LibreOfficeKit/");
}
bool Nullptr::isFromCIncludeFile(SourceLocation spellingLocation) const {