diff options
author | Charles Milette <me@charlesmilette.net> | 2018-05-19 19:18:26 -0400 |
---|---|---|
committer | Charles Milette <me@charlesmilette.net> | 2018-05-19 19:18:26 -0400 |
commit | 72c0002b45215466e06cd901fe95d9493d659ab2 (patch) | |
tree | 03a56f2da0f1ed34a219941060ec2100aedf1ac6 /application/MultiMC.cpp | |
parent | b9fd381eee2f7c87e7645046b26dd552dc3cae5c (diff) | |
download | MultiMC-72c0002b45215466e06cd901fe95d9493d659ab2.tar MultiMC-72c0002b45215466e06cd901fe95d9493d659ab2.tar.gz MultiMC-72c0002b45215466e06cd901fe95d9493d659ab2.tar.lz MultiMC-72c0002b45215466e06cd901fe95d9493d659ab2.tar.xz MultiMC-72c0002b45215466e06cd901fe95d9493d659ab2.zip |
Catch C++ exceptions by const reference
Fixes #2277
Diffstat (limited to 'application/MultiMC.cpp')
-rw-r--r-- | application/MultiMC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index 4236fbcf..e7e6d337 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -174,7 +174,7 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) { args = parser.parse(arguments()); } - catch (ParsingError e) + catch (const ParsingError &e) { std::cerr << "CommandLineError: " << e.what() << std::endl; std::cerr << "Try '%1 -h' to get help on MultiMC's command line parameters." |