diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-02-27 10:30:57 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-02-27 10:30:57 +0100 |
commit | 6db4e5b3ad28973601b8e7426a4cffa01322b9a2 (patch) | |
tree | 20ad9a5dc6a18dd513f4a254f7a86ddd2eba52f3 /src/MemlessPoly.cpp | |
parent | 201d711a1d3dfbe46d622871731005937598e790 (diff) | |
parent | c3dbbec39aef32789aacb872c88801f0c5d15ef7 (diff) | |
download | dabmod-6db4e5b3ad28973601b8e7426a4cffa01322b9a2.tar.gz dabmod-6db4e5b3ad28973601b8e7426a4cffa01322b9a2.tar.bz2 dabmod-6db4e5b3ad28973601b8e7426a4cffa01322b9a2.zip |
Merge branch 'next' into lime
Diffstat (limited to 'src/MemlessPoly.cpp')
-rw-r--r-- | src/MemlessPoly.cpp | 4 |
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()); } } |