[gnote] Remove boost::bind from gnote.cpp
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove boost::bind from gnote.cpp
- Date: Fri, 13 Jan 2017 21:18:22 +0000 (UTC)
commit c5dfaa3bde5152576d7142cc27252c46b3c25981
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Jan 13 23:08:54 2017 +0200
Remove boost::bind from gnote.cpp
src/gnote.cpp | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gnote.cpp b/src/gnote.cpp
index dcb905c..7202631 100644
--- a/src/gnote.cpp
+++ b/src/gnote.cpp
@@ -27,8 +27,6 @@
#include <iostream>
-#include <boost/bind.hpp>
-
#include <glibmm/thread.h>
#include <glibmm/i18n.h>
#include <glibmm/optionentry.h>
@@ -330,7 +328,7 @@ namespace gnote {
MainWindow & Gnote::new_main_window()
{
NoteRecentChanges *win = new NoteRecentChanges(default_note_manager());
- win->signal_hide().connect(boost::bind(sigc::mem_fun(*this, &Gnote::on_main_window_closed), win));
+ win->signal_hide().connect([this, win]() { on_main_window_closed(win); });
add_window(*win);
return *win;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]