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:
committed by
Noel Grandin
parent
4e59eecc07
commit
2c8fe2e737
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user