Adapt pathname checks to mixed usage of \ and / on Windows
Change-Id: I91bc89a9076c6642e06b238f65f2d31a1d20c6b5
This commit is contained in:
@@ -29,7 +29,7 @@ bool UnoAny::VisitCXXOperatorCallExpr(CXXOperatorCallExpr const * expr)
|
||||
return true;
|
||||
}
|
||||
StringRef aFileName = compiler.getSourceManager().getFilename(compiler.getSourceManager().getSpellingLoc(expr->getLocStart()));
|
||||
if (aFileName == SRCDIR "/include/com/sun/star/uno/Any.hxx") {
|
||||
if (loplugin::isSamePathname(aFileName, SRCDIR "/include/com/sun/star/uno/Any.hxx")) {
|
||||
return true;
|
||||
}
|
||||
if (expr->getOperator() != OO_Equal) {
|
||||
|
Reference in New Issue
Block a user