1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Catch exceptions by const-ref, not by value

This commit is contained in:
Michał Janiszewski
2018-10-29 16:41:54 +01:00
parent e814aca29f
commit 9822a8f2df
2 changed files with 2 additions and 2 deletions

View File

@ -484,7 +484,7 @@ CGeneralTextHandler::CGeneralTextHandler()
znpc00.push_back(parser.readString());
} while (parser.endLine());
}
catch (std::runtime_error)
catch (const std::runtime_error &)
{
logGlobal->warn("WoG file ZNPC00.TXT containing commander texts was not found");
}