[gnote] Remove boost::bind from watchers
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove boost::bind from watchers
- Date: Fri, 13 Jan 2017 21:18:32 +0000 (UTC)
commit 09aab68d3302bd434bc7c9e33edeb5fe60be9222
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Jan 13 23:17:52 2017 +0200
Remove boost::bind from watchers
src/watchers.cpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/watchers.cpp b/src/watchers.cpp
index 0f9db8a..77c1d92 100644
--- a/src/watchers.cpp
+++ b/src/watchers.cpp
@@ -26,8 +26,6 @@
#include <string.h>
-#include <boost/bind.hpp>
-
#include <glibmm/i18n.h>
#include <gtkmm/separatormenuitem.h>
@@ -920,8 +918,9 @@ namespace gnote {
hit.key().c_str(), hit.start(), hit.end());
get_note()->get_tag_table()->foreach(
- boost::bind(sigc::mem_fun(*this, &NoteLinkWatcher::remove_link_tag),
- _1, title_start, title_end));
+ [this, title_start, title_end](const Glib::RefPtr<Gtk::TextTag> & tag) {
+ remove_link_tag(tag, title_start, title_end);
+ });
get_buffer()->apply_tag (m_link_tag, title_start, title_end);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]