1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix issues detected by Sonar

This commit is contained in:
Ivan Savenko
2025-05-05 16:05:59 +03:00
parent cb5295b9ec
commit 4b30336d03
37 changed files with 94 additions and 114 deletions

View File

@@ -954,7 +954,7 @@ void CMap::parseUidCounter()
const int current_index = std::stoi(index_part);
max_index = std::max(max_index, current_index);
}
catch (const std::invalid_argument& e) {
catch (const std::invalid_argument&) {
logGlobal->error("Instance name %s contains non-numeric index part: %s", key, index_part);
}
catch (const std::out_of_range&) {