SettingsManager: Catch exception with constant reference parameter.
This fixes warning: catching polymorphic type 'class std::exception' by value.
This commit is contained in:
parent
e1faa783b6
commit
9e9a91a048
1 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ void SettingsManager::LoadSettings(std::string filename)
|
|||
{
|
||||
settings_file >> settings_data;
|
||||
}
|
||||
catch(std::exception e)
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
/*-------------------------------------------------*\
|
||||
| If an exception was caught, that means the JSON |
|
||||
|
|
@ -99,7 +99,7 @@ void SettingsManager::SaveSettings()
|
|||
{
|
||||
settings_file << settings_data.dump(4);
|
||||
}
|
||||
catch(std::exception e)
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue