mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #649, added caches to model data reader
* trait * const fix distributor list
This commit is contained in:
@@ -32,7 +32,7 @@ namespace BlackMisc
|
||||
return CDistributor();
|
||||
}
|
||||
|
||||
CDistributor CDistributorList::smartDistributorSelector(const CDistributor &distributorPattern)
|
||||
CDistributor CDistributorList::smartDistributorSelector(const CDistributor &distributorPattern) const
|
||||
{
|
||||
if (distributorPattern.hasValidDbKey())
|
||||
{
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace BlackMisc
|
||||
CDistributor findByKeyOrAlias(const QString &keyOrAlias) const;
|
||||
|
||||
//! Best match by given pattern
|
||||
CDistributor smartDistributorSelector(const CDistributor &distributorPattern);
|
||||
CDistributor smartDistributorSelector(const CDistributor &distributorPattern) const;
|
||||
|
||||
//! At least is matching key or alias
|
||||
bool matchesAnyKeyOrAlias(const QString &keyOrAlias) const;
|
||||
|
||||
Reference in New Issue
Block a user