[gnote] Remove boost::bind from SyncUI



commit 3770811edccaaa62aee959f3696e841add70fba4
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Jan 14 18:10:32 2017 +0200

    Remove boost::bind from SyncUI

 src/synchronization/syncui.cpp |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/synchronization/syncui.cpp b/src/synchronization/syncui.cpp
index bb875db..3e79ce5 100644
--- a/src/synchronization/syncui.cpp
+++ b/src/synchronization/syncui.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2012-2014 Aurimas Cernius
+ * Copyright (C) 2012-2014,2017 Aurimas Cernius
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -18,8 +18,6 @@
  */
 
 
-#include <boost/bind.hpp>
-
 #include "debug.hpp"
 #include "syncui.hpp"
 
@@ -34,8 +32,7 @@ namespace sync {
 
   void SyncUI::note_synchronized_th(const std::string & noteTitle, NoteSyncType type)
   {
-    utils::main_context_invoke(boost::bind(
-      sigc::mem_fun(*this, &SyncUI::note_synchronized), noteTitle, type));
+    utils::main_context_invoke([this, noteTitle, type]() { note_synchronized(noteTitle, type); });
   }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]