diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-05-01 01:31:35 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-05-01 01:31:35 +0200 |
| commit | 8963f0007af1a312017b9627c18b82ec2a577591 (patch) | |
| tree | baeb6f2c17da72248408b8c1d695242b44edda9e /src/wx/suspender.h | |
| parent | 29f84e2b8785585885e0658bdf9938967547460f (diff) | |
C++11 tidying.
Diffstat (limited to 'src/wx/suspender.h')
| -rw-r--r-- | src/wx/suspender.h | 8 |
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; }; |
