fix(Windows): unbreak Windows build

a feeble attempt to make M$ compiler grok otherwise valid C++17 code
This commit is contained in:
Lukáš Tinkl 2023-11-23 10:56:25 +01:00 committed by Lukáš Tinkl
parent 743ba6929c
commit fdc36b72e6
1 changed files with 5 additions and 2 deletions

View File

@ -201,8 +201,11 @@ bool ManageTokensController::hasSettings() const
bool ManageTokensController::lessThan(const QString& lhsSymbol, const QString& rhsSymbol) const
{
auto [leftPos, leftVisible, leftGroup] = m_settingsData.value(lhsSymbol, {INT_MAX, false, QString()});
auto [rightPos, rightVisible, rightGroup] = m_settingsData.value(rhsSymbol, {INT_MAX, false, QString()});
int leftPos, rightPos;
bool leftVisible, rightVisible;
std::tie(leftPos, leftVisible, std::ignore) = m_settingsData.value(lhsSymbol, {INT_MAX, false, QString()});
std::tie(rightPos, rightVisible, std::ignore) = m_settingsData.value(rhsSymbol, {INT_MAX, false, QString()});
// check if visible
leftPos = leftVisible ? leftPos : INT_MAX;