summaryrefslogtreecommitdiff
path: root/src/wx/suspender.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-05-01 01:31:35 +0200
committerCarl Hetherington <cth@carlh.net>2021-05-01 01:31:35 +0200
commit8963f0007af1a312017b9627c18b82ec2a577591 (patch)
treebaeb6f2c17da72248408b8c1d695242b44edda9e /src/wx/suspender.h
parent29f84e2b8785585885e0658bdf9938967547460f (diff)
C++11 tidying.
Diffstat (limited to 'src/wx/suspender.h')
-rw-r--r--src/wx/suspender.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/suspender.h b/src/wx/suspender.h
index 947d7a367..e01888823 100644
--- a/src/wx/suspender.h
+++ b/src/wx/suspender.h
@@ -19,14 +19,14 @@
*/
-#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);
@@ -47,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;
};