summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-07-14 22:06:59 +0200
committerCarl Hetherington <cth@carlh.net>2021-07-14 22:06:59 +0200
commit8ab7227e59ad7d9397ae2cfc03a32ecfca83a2c0 (patch)
treee5dbe12a720e4942b9b76563ad2a99d7201bdcc8 /src
parent4fefa7103dc345e0fcff684caff2cf4eb0b2d463 (diff)
Fix compile warning.
Diffstat (limited to 'src')
-rw-r--r--src/wx/dcpomatic_spin_ctrl.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/wx/dcpomatic_spin_ctrl.cc b/src/wx/dcpomatic_spin_ctrl.cc
index e8f2fdbc7..05f13a7d9 100644
--- a/src/wx/dcpomatic_spin_ctrl.cc
+++ b/src/wx/dcpomatic_spin_ctrl.cc
@@ -20,11 +20,8 @@
#include "dcpomatic_spin_ctrl.h"
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <wx/wx.h>
-#if BOOST_VERSION >= 106100
-using namespace boost::placeholders;
-#endif
SpinCtrl::SpinCtrl (wxWindow* parent, int width)
@@ -33,6 +30,6 @@ SpinCtrl::SpinCtrl (wxWindow* parent, int width)
auto enter = [](wxCommandEvent& ev) {
dynamic_cast<wxWindow*>(ev.GetEventObject())->Navigate();
};
- Bind (wxEVT_TEXT_ENTER, boost::bind<void>(enter, _1));
+ Bind (wxEVT_TEXT_ENTER, boost::bind<void>(enter, boost::placeholders::_1));
}