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

@@ -38,15 +38,8 @@ struct MyCallSiteInfo
};
bool operator < (const MyCallSiteInfo &lhs, const MyCallSiteInfo &rhs)
{
if (lhs.sourceLocation < rhs.sourceLocation)
return true;
else if (lhs.sourceLocation > rhs.sourceLocation)
return false;
else if (lhs.paramIndex < rhs.paramIndex)
return true;
else if (lhs.paramIndex > rhs.paramIndex)
return false;
else return lhs.callValue < rhs.callValue;
return std::tie(lhs.sourceLocation, lhs.paramIndex, lhs.callValue)
< std::tie(rhs.sourceLocation, rhs.paramIndex, rhs.callValue);
}