mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #325, name variant pair allows test for existing values
* equal value updates can be skipped * equalsQVariant in CValueObject * resizing parameter for views
This commit is contained in:
@@ -27,7 +27,7 @@ namespace BlackMisc
|
||||
/*
|
||||
* Name contained?
|
||||
*/
|
||||
bool CNameVariantPairList::containsName(const QString &name)
|
||||
bool CNameVariantPairList::containsName(const QString &name)const
|
||||
{
|
||||
return this->contains(&CNameVariantPair::getName, name);
|
||||
}
|
||||
@@ -35,7 +35,7 @@ namespace BlackMisc
|
||||
/*
|
||||
* Name index
|
||||
*/
|
||||
int CNameVariantPairList::getNameRowIndex(const QString &name)
|
||||
int CNameVariantPairList::getNameRowIndex(const QString &name) const
|
||||
{
|
||||
for (int i = 0; i < this->size(); i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user