Fix strange layout problems with the content sub panels (#2059).
[dcpomatic.git] / src / wx / suspender.h
index 3538951a8551fe3a5c939dbea1e885fe43cf3e86..e01888823b5abe7231b6b8553481478f9e619c4d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
-#include <boost/function.hpp>
+
+#include <functional>
 #include <set>
 
+
 class Suspender
 {
 public:
-       Suspender (boost::function<void (int)> handler);
+       Suspender (std::function<void (int)> handler);
 
        bool check (int property);
 
@@ -45,7 +47,7 @@ private:
        void increment ();
        void decrement ();
 
-       boost::function<void (int)> _handler;
-       int _count;
+       std::function<void (int)> _handler;
+       int _count = 0;
        std::set<int> _pending;
 };