mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-18 16:23:27 +02:00
Fix ubuntu20+ compile "error" (#1)
* BehaviourDatabase::searchDigitNoLimit: catching exception with const ref * - ident with tab
This commit is contained in:
@@ -1440,10 +1440,10 @@ int32_t BehaviourDatabase::searchDigitNoLimit(const std::string& message)
|
|||||||
try {
|
try {
|
||||||
value = std::stoi(message.substr(start, end).c_str());
|
value = std::stoi(message.substr(start, end).c_str());
|
||||||
}
|
}
|
||||||
catch (std::invalid_argument) {
|
catch (std::invalid_argument const&) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
catch (std::out_of_range) {
|
catch (std::out_of_range const&) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user