From a112eeb4d052b1212f94e95efd83a215213da691 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 28 Jan 2015 22:52:13 +0000 Subject: Small fixes and tidy-ups spotted by cppcheck. --- src/lib/exceptions.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/exceptions.h') diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 950c2f381..96dc816ec 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -40,9 +40,9 @@ class StringError : public std::exception { public: /** @param w Error message */ - StringError (std::string w) { - _what = w; - } + StringError (std::string w) + : _what (w) + {} virtual ~StringError () throw () {} -- cgit v1.2.3