diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-25 11:33:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-25 11:42:35 +0200 |
commit | 4fbf95deba87ed28ee8eb8442477832e46ba76c6 (patch) | |
tree | 2a1628497cc891de6ede5f5b33613e6e4deb63ef /compilerplugins/clang/unusedmethods.cxx | |
parent | f66d734bcd994cb5fc2f38a8d9018e13385cd10c (diff) |
new loplugin:unuseddefaultparams
Change-Id: I2c3e7d66be9e3883ea2801ff394948cc580d1e44
Diffstat (limited to 'compilerplugins/clang/unusedmethods.cxx')
-rw-r--r-- | compilerplugins/clang/unusedmethods.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx index 3649fc6c24dc..c2785dd771ea 100644 --- a/compilerplugins/clang/unusedmethods.cxx +++ b/compilerplugins/clang/unusedmethods.cxx @@ -52,17 +52,11 @@ struct MyFuncInfo std::string nameAndParams; std::string sourceLocation; - bool operator < (const MyFuncInfo &other) const - { - if (returnType < other.returnType) - return true; - else if (returnType == other.returnType) - return nameAndParams < other.nameAndParams; - else - return false; - } }; - +bool operator < (const MyFuncInfo &lhs, const MyFuncInfo &rhs) +{ + return lhs.sourceLocation < rhs.sourceLocation; +} // try to limit the voluminous output a little |