diff options
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Window.cc b/src/Window.cc index 342e488..5a1659e 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -73,14 +73,14 @@ | |||
73 | using std::endl; | 73 | using std::endl; |
74 | using std::string; | 74 | using std::string; |
75 | using std::vector; | 75 | using std::vector; |
76 | using std::bind2nd; | 76 | using std::mem_fn; |
77 | using std::mem_fun; | ||
78 | using std::equal_to; | 77 | using std::equal_to; |
79 | using std::max; | 78 | using std::max; |
80 | using std::swap; | 79 | using std::swap; |
81 | using std::dec; | 80 | using std::dec; |
82 | using std::hex; | 81 | using std::hex; |
83 | 82 | ||
83 | using namespace std::placeholders; | ||
84 | using namespace FbTk; | 84 | using namespace FbTk; |
85 | 85 | ||
86 | namespace { | 86 | namespace { |
@@ -815,8 +815,8 @@ bool FluxboxWindow::removeClient(WinClient &client) { | |||
815 | WinClient *FluxboxWindow::findClient(Window win) { | 815 | WinClient *FluxboxWindow::findClient(Window win) { |
816 | ClientList::iterator it = find_if(clientList().begin(), | 816 | ClientList::iterator it = find_if(clientList().begin(), |
817 | clientList().end(), | 817 | clientList().end(), |
818 | Compose(bind2nd(equal_to<Window>(), win), | 818 | Compose(std::bind(equal_to<Window>(), _1, win), |
819 | mem_fun(&WinClient::window))); | 819 | mem_fn(&WinClient::window))); |
820 | return (it == clientList().end() ? 0 : *it); | 820 | return (it == clientList().end() ? 0 : *it); |
821 | } | 821 | } |
822 | 822 | ||
@@ -3379,8 +3379,8 @@ WinClient* FluxboxWindow::winClientOfLabelButtonWindow(Window window) { | |||
3379 | Client2ButtonMap::iterator it = | 3379 | Client2ButtonMap::iterator it = |
3380 | find_if(m_labelbuttons.begin(), | 3380 | find_if(m_labelbuttons.begin(), |
3381 | m_labelbuttons.end(), | 3381 | m_labelbuttons.end(), |
3382 | Compose(bind2nd(equal_to<Window>(), window), | 3382 | Compose(std::bind(equal_to<Window>(), _1, window), |
3383 | Compose(mem_fun(&FbTk::Button::window), | 3383 | Compose(mem_fn(&FbTk::Button::window), |
3384 | Select2nd<Client2ButtonMap::value_type>()))); | 3384 | Select2nd<Client2ButtonMap::value_type>()))); |
3385 | if (it != m_labelbuttons.end()) | 3385 | if (it != m_labelbuttons.end()) |
3386 | result = it->first; | 3386 | result = it->first; |