mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 17:30:12 +08:00
Minor fix for country
This commit is contained in:
@@ -126,9 +126,9 @@ namespace BlackMisc
|
|||||||
this->setName(variant.toQString());
|
this->setName(variant.toQString());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return (IDatastoreObjectWithStringKey::canHandleIndex(index)) ?
|
IDatastoreObjectWithStringKey::canHandleIndex(index) ?
|
||||||
IDatastoreObjectWithStringKey::setPropertyByIndex(index, variant) :
|
IDatastoreObjectWithStringKey::setPropertyByIndex(index, variant) :
|
||||||
CValueObject::setPropertyByIndex(index, variant);
|
CValueObject::setPropertyByIndex(index, variant);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -157,8 +157,8 @@ namespace BlackMisc
|
|||||||
// when using relationship, this can be null
|
// when using relationship, this can be null
|
||||||
return CCountry();
|
return CCountry();
|
||||||
}
|
}
|
||||||
QString iso(json.value(prefix + "id").toString());
|
const QString iso(json.value(prefix + "id").toString());
|
||||||
QString name(json.value(prefix + "country").toString());
|
const QString name(json.value(prefix + "country").toString());
|
||||||
CCountry country(iso, name);
|
CCountry country(iso, name);
|
||||||
country.setKeyAndTimestampFromDatabaseJson(json, prefix);
|
country.setKeyAndTimestampFromDatabaseJson(json, prefix);
|
||||||
return country;
|
return country;
|
||||||
|
|||||||
Reference in New Issue
Block a user