summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/stringconcat.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/stringconcat.cxx')
-rw-r--r--compilerplugins/clang/stringconcat.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/compilerplugins/clang/stringconcat.cxx b/compilerplugins/clang/stringconcat.cxx
index 1efdea8875da..f6e791ee2f37 100644
--- a/compilerplugins/clang/stringconcat.cxx
+++ b/compilerplugins/clang/stringconcat.cxx
@@ -98,8 +98,10 @@ bool StringConcat::VisitCallExpr(CallExpr const * expr) {
StringRef name {
compiler.getSourceManager().getFilename(
compiler.getSourceManager().getSpellingLoc(expr->getLocStart())) };
- if (name == SRCDIR "/sal/qa/rtl/strings/test_ostring_concat.cxx"
- || name == SRCDIR "/sal/qa/rtl/strings/test_oustring_concat.cxx")
+ if (loplugin::isSamePathname(
+ name, SRCDIR "/sal/qa/rtl/strings/test_ostring_concat.cxx")
+ || loplugin::isSamePathname(
+ name, SRCDIR "/sal/qa/rtl/strings/test_oustring_concat.cxx"))
{
return true;
}