refs #568, only one IDatastoreObjectList by making the key type a template parameter

This commit is contained in:
Klaus Basan
2016-01-13 01:05:01 +01:00
parent 6625b83c5e
commit 31c86da50b
9 changed files with 56 additions and 129 deletions

View File

@@ -19,7 +19,7 @@ namespace BlackMisc
{
QString iso(isoCode.trimmed().toUpper());
if (!CCountry::isValidIsoCode(iso)) { return CCountry(); }
return IDatastoreObjectListWithStringKey::findByKey(isoCode);
return IDatastoreObjectList::findByKey(isoCode);
}
CCountry CCountryList::findBestMatchByCountryName(const QString &countryName) const