update unusedmethods plugin to deal with constructors

and fix the operator< implementations in some of the other
plugins too.

Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035
Reviewed-on: https://gerrit.libreoffice.org/25057
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin
2016-05-16 10:11:04 +02:00
committed by Noel Grandin
parent 4e59eecc07
commit 2c8fe2e737
185 changed files with 60 additions and 2857 deletions

View File

@@ -50,12 +50,8 @@ struct MyFieldInfo
};
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;
return std::tie(lhs.parentClass, lhs.fieldName)
< std::tie(rhs.parentClass, rhs.fieldName);
}