Fixed comparison of callsign, which should be string based, not tupel based

This commit is contained in:
Klaus Basan
2014-03-26 18:46:13 +01:00
parent 88fb9e8832
commit b9ed8c7186

View File

@@ -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);
}
/*