diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-03-26 13:26:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-03-27 08:20:47 +0200 |
commit | cbd1f3695f319c8aa4005d19e40a07c6b4dd116e (patch) | |
tree | 091c943ad8ee6c1dc758d1843b34791f526a88c9 /compilerplugins/clang/checkunusedparams.cxx | |
parent | add1784e13abcfee48e6087e2160a5c6db941487 (diff) |
Use isSamePathname instead of hasPathnamePrefix, where appropriate
Change-Id: I75f32fc66877c0fb1e71be3b5e8b6d6c1b9c4d36
Diffstat (limited to 'compilerplugins/clang/checkunusedparams.cxx')
-rw-r--r-- | compilerplugins/clang/checkunusedparams.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compilerplugins/clang/checkunusedparams.cxx b/compilerplugins/clang/checkunusedparams.cxx index 8dbea6bd72a2..31dae1c66e61 100644 --- a/compilerplugins/clang/checkunusedparams.cxx +++ b/compilerplugins/clang/checkunusedparams.cxx @@ -68,16 +68,16 @@ void CheckUnusedParams::run() if (loplugin::hasPathnamePrefix(fn, SRCDIR "/xmloff/")) return; // I believe someone is busy working on this chunk of code - if (loplugin::hasPathnamePrefix(fn, SRCDIR "/sc/source/ui/docshell/dataprovider.cxx")) + if (loplugin::isSamePathname(fn, SRCDIR "/sc/source/ui/docshell/dataprovider.cxx")) return; // I think erack is working on stuff here - if (loplugin::hasPathnamePrefix(fn, SRCDIR "/sc/source/filter/excel/xiformula.cxx")) + if (loplugin::isSamePathname(fn, SRCDIR "/sc/source/filter/excel/xiformula.cxx")) return; // lots of callbacks here - if (loplugin::hasPathnamePrefix(fn, SRCDIR "/sc/source/filter/lotus/op.cxx")) + if (loplugin::isSamePathname(fn, SRCDIR "/sc/source/filter/lotus/op.cxx")) return; // template magic - if (loplugin::hasPathnamePrefix(fn, SRCDIR "/sc/source/filter/html/htmlpars.cxx")) + if (loplugin::isSamePathname(fn, SRCDIR "/sc/source/filter/html/htmlpars.cxx")) return; m_phase = PluginPhase::FindAddressOf; |