diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-03-04 20:10:09 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-03-04 20:10:09 +0000 |
| commit | 583de3ba6e43bc6185e3610cf5d5f4bca0034a56 (patch) | |
| tree | f48b01d2bf746d7cf4bee0c6b2ab2fc3f0630d00 /src/exception.hh | |
| parent | ded05bb5d336d12cb4142946813fe2e04b688872 (diff) | |
do not take a std::string by value in runtime_error constructor
Diffstat (limited to 'src/exception.hh')
| -rw-r--r-- | src/exception.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exception.hh b/src/exception.hh index f341e724..89188e63 100644 --- a/src/exception.hh +++ b/src/exception.hh @@ -14,7 +14,7 @@ struct exception struct runtime_error : exception { - runtime_error(const std::string description) + runtime_error(const std::string& description) : m_description(description) {} std::string description() const { return m_description; } |
