X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fsuspender.h;h=e01888823b5abe7231b6b8553481478f9e619c4d;hb=8ccbe70f3c2f5db9e88978a98f3ad5735ece07ab;hp=3538951a8551fe3a5c939dbea1e885fe43cf3e86;hpb=746aa7337ac2d51a4fa09039c1d5d7717cc880fa;p=dcpomatic.git diff --git a/src/wx/suspender.h b/src/wx/suspender.h index 3538951a8..e01888823 100644 --- a/src/wx/suspender.h +++ b/src/wx/suspender.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2020 Carl Hetherington + Copyright (C) 2020-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,13 +18,15 @@ */ -#include + +#include #include + class Suspender { public: - Suspender (boost::function handler); + Suspender (std::function handler); bool check (int property); @@ -45,7 +47,7 @@ private: void increment (); void decrement (); - boost::function _handler; - int _count; + std::function _handler; + int _count = 0; std::set _pending; };