From 583de3ba6e43bc6185e3610cf5d5f4bca0034a56 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 4 Mar 2012 20:10:09 +0000 Subject: [PATCH] do not take a std::string by value in runtime_error constructor --- src/exception.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }