aboutsummaryrefslogtreecommitdiffstats
path: root/src/MemlessPoly.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-28 17:13:52 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-28 17:13:52 +0100
commitc3dbbec39aef32789aacb872c88801f0c5d15ef7 (patch)
treef935c3ae09246c4dbb714d1fd73a2f874925802f /src/MemlessPoly.cpp
parentaec2a980fc37bd5d28f06c8e48a98b51ae65ac32 (diff)
downloaddabmod-c3dbbec39aef32789aacb872c88801f0c5d15ef7.tar.gz
dabmod-c3dbbec39aef32789aacb872c88801f0c5d15ef7.tar.bz2
dabmod-c3dbbec39aef32789aacb872c88801f0c5d15ef7.zip
Catch all exceptions as const
Diffstat (limited to 'src/MemlessPoly.cpp')
-rw-r--r--src/MemlessPoly.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MemlessPoly.cpp b/src/MemlessPoly.cpp
index 07e4c1a..ef77c07 100644
--- a/src/MemlessPoly.cpp
+++ b/src/MemlessPoly.cpp
@@ -420,7 +420,7 @@ void MemlessPoly::set_parameter(const string& parameter, const string& value)
load_coefficients(coefs_fstream);
m_coefs_file = value;
}
- catch (std::runtime_error &e) {
+ catch (const std::runtime_error &e) {
throw ParameterError(e.what());
}
}
@@ -434,7 +434,7 @@ void MemlessPoly::set_parameter(const string& parameter, const string& value)
ofstream coefs_fstream(m_coefs_file);
coefs_fstream << value;
}
- catch (std::runtime_error &e) {
+ catch (const std::runtime_error &e) {
throw ParameterError(e.what());
}
}