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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user