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/unusedfields.cxx | |
parent | f66d734bcd994cb5fc2f38a8d9018e13385cd10c (diff) |
new loplugin:unuseddefaultparams
Change-Id: I2c3e7d66be9e3883ea2801ff394948cc580d1e44
Diffstat (limited to 'compilerplugins/clang/unusedfields.cxx')
-rw-r--r-- | compilerplugins/clang/unusedfields.cxx | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/compilerplugins/clang/unusedfields.cxx b/compilerplugins/clang/unusedfields.cxx index 2667485620c6..dd928d302772 100644 --- a/compilerplugins/clang/unusedfields.cxx +++ b/compilerplugins/clang/unusedfields.cxx @@ -47,17 +47,16 @@ struct MyFieldInfo std::string fieldName; std::string fieldType; std::string sourceLocation; - - bool operator < (const MyFieldInfo &other) const - { - if (parentClass < other.parentClass) - return true; - else if (parentClass == other.parentClass) - return fieldName < other.fieldName; - else - return false; - } }; +bool operator < (const MyFieldInfo &lhs, const MyFieldInfo &rhs) +{ + if (lhs.parentClass < rhs.parentClass) + return true; + else if (lhs.parentClass == rhs.parentClass) + return lhs.fieldName < rhs.fieldName; + else + return false; +} // try to limit the voluminous output a little |