mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Fixed comparison of callsign, which should be string based, not tupel based
This commit is contained in:
@@ -82,9 +82,9 @@ namespace BlackMisc
|
||||
*/
|
||||
int CCallsign::compareImpl(const CValueObject &otherBase) const
|
||||
{
|
||||
// intentionally compare on string only!
|
||||
const auto &other = static_cast<const CCallsign &>(otherBase);
|
||||
|
||||
return compare(TupleConverter<CCallsign>::toTuple(*this), TupleConverter<CCallsign>::toTuple(other));
|
||||
return this->m_callsign.compare(other.m_callsign, Qt::CaseInsensitive);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user