Skip to content

Commit

Permalink
fix(Windows): unbreak Windows build
Browse files Browse the repository at this point in the history
explicitely use the C++17 macros to help MSVC
  • Loading branch information
caybro committed Nov 23, 2023
1 parent ba752fc commit 20282ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions ui/StatusQ/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ set_target_properties(StatusQ PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${STATUSQ_MODULE_PATH}
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${STATUSQ_MODULE_PATH}
LIBRARY_OUTPUT_DIRECTORY ${STATUSQ_MODULE_PATH}
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
)

if (APPLE)
Expand Down
7 changes: 2 additions & 5 deletions ui/StatusQ/src/wallet/managetokenscontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,8 @@ bool ManageTokensController::hasSettings() const

bool ManageTokensController::lessThan(const QString& lhsSymbol, const QString& rhsSymbol) const
{
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()});
auto [leftPos, leftVisible, leftGroup] = m_settingsData.value(lhsSymbol, {INT_MAX, false, QString()});
auto [rightPos, rightVisible, rightGroup] = m_settingsData.value(rhsSymbol, {INT_MAX, false, QString()});

// check if visible
leftPos = leftVisible ? leftPos : INT_MAX;
Expand Down

0 comments on commit 20282ba

Please sign in to comment.