This commit is contained in:
Klaus Basan
2019-10-29 23:52:29 +01:00
committed by Mat Sutcliffe
parent a520145a6a
commit 7beed0225c
6 changed files with 25 additions and 40 deletions

View File

@@ -111,11 +111,11 @@ namespace BlackMisc
int CEcosystem::comparePropertyByIndex(const CPropertyIndex &index, const CEcosystem &compareValue) const
{
if (index.isMyself()) { return Compare::compare(this->m_system, compareValue.m_system); }
if (index.isMyself()) { return Compare::compare(m_system, compareValue.m_system); }
const ColumnIndex i = index.frontCasted<ColumnIndex>();
switch (i)
{
case IndexSystem: return Compare::compare(this->m_system, compareValue.m_system);
case IndexSystem: return Compare::compare(m_system, compareValue.m_system);
default: break;
}
BLACK_VERIFY_X(false, Q_FUNC_INFO, qUtf8Printable("No comparison for index " + index.toQString()));