Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopheLarchier committed Nov 4, 2024
1 parent 8622275 commit a203173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/clientgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void ClientGui::init() {
qCWarning(lcClientGui()) << "loadInfoMaps failed for trial=" << trial;
error = true;
if (trial < INIT_TRIALS) {
KDC::CommonGuiUtility::sleep(static_cast<unsigned long>(2 ^ trial));
KDC::CommonGuiUtility::sleep(static_cast<unsigned long>(std::pow(2, trial)));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/appserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3982,7 +3982,7 @@ void AppServer::addError(const Error &error) {
}
}
}
for (int errorId: toBeRemovedErrorIds) {
for (auto errorId: toBeRemovedErrorIds) {
bool found = false;
if (!ParmsDb::instance()->deleteError(errorId, found)) {
LOG_WARN(Log::instance()->getLogger(), "Error in ParmsDb::deleteError");
Expand Down

0 comments on commit a203173

Please sign in to comment.