mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refs #290 using a CRange of iterator adaptors to return from the primary predicate-based methods of CRangeBase without copying elements
This commit is contained in:
@@ -26,7 +26,7 @@ namespace BlackSim
|
||||
*/
|
||||
bool CAircraftCfgEntriesList::containsModeWithTitle(const QString &title, Qt::CaseSensitivity caseSensitivity)
|
||||
{
|
||||
return this->contains([ = ](const CAircraftCfgEntries & entries) -> bool
|
||||
return this->containsBy([ = ](const CAircraftCfgEntries & entries) -> bool
|
||||
{ return title.compare(entries.getTitle(), caseSensitivity) == 0; });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user