summaryrefslogtreecommitdiff
path: root/src/lib/exceptions.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-29 20:02:56 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-29 20:02:56 +0000
commitbfe277e664a03ec47cd6bee7e1b1e4aca6eb38e6 (patch)
tree6bdc6fa07f2cde0565c4025ab552f2c0fc9c3b2f /src/lib/exceptions.h
parent6a0da4eb43fc684c0f54a7a3a817a31dc8db7109 (diff)
parent27867be66579551018c926ed3339624e463c1b08 (diff)
Merge branch '2.0' of git.carlh.net:git/dcpomatic into 2.0
Diffstat (limited to 'src/lib/exceptions.h')
-rw-r--r--src/lib/exceptions.h6
1 files changed, 3 insertions, 3 deletions
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 () {}