Fix write_frame_info again.
[dcpomatic.git] / src / lib / exceptions.h
index 950c2f381aae0da529fc0403c75fbfa3412637a6..268e8c36d200771d84e291ccd90e8f215da54c29 100644 (file)
@@ -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 () {}
 
@@ -296,8 +296,8 @@ public:
                }
        }
 
-protected:     
-       
+protected:
+
        void store_current () {
                boost::mutex::scoped_lock lm (_mutex);
                _exception = boost::current_exception ();