[gnote] Remove boost::bind from SyncManager
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove boost::bind from SyncManager
- Date: Sat, 14 Jan 2017 16:12:15 +0000 (UTC)
commit 0a8dacbde0b6a6c0c788a5521dfc5b82af84d0e2
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Jan 14 18:01:57 2017 +0200
Remove boost::bind from SyncManager
src/synchronization/syncmanager.cpp | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/src/synchronization/syncmanager.cpp b/src/synchronization/syncmanager.cpp
index 9d8d002..28e963c 100644
--- a/src/synchronization/syncmanager.cpp
+++ b/src/synchronization/syncmanager.cpp
@@ -20,7 +20,6 @@
#include "config.h"
-#include <boost/bind.hpp>
#include <glibmm/i18n.h>
#include <gtkmm/actiongroup.h>
#include <sigc++/sigc++.h>
@@ -286,8 +285,7 @@ namespace sync {
// delegate to run in the main gtk thread.
// To be consistent, any exceptions in the delgate will be caught
// and then rethrown in the synchronization thread.
- utils::main_context_call(boost::bind(
- sigc::mem_fun(*this, &SyncManager::delete_notes), server));
+ utils::main_context_call([this, server]() { delete_notes(server); });
// TODO: Add following updates to syncDialog treeview
@@ -581,8 +579,7 @@ namespace sync {
// delegate to run in the main gtk thread.
// To be consistent, any exceptions in the delgate will be caught
// and then rethrown in the synchronization thread.
- utils::main_context_call(boost::bind(
- sigc::mem_fun(*this, &SyncManager::create_note), noteUpdate));
+ utils::main_context_call([this, noteUpdate]() { create_note(noteUpdate); });
}
@@ -592,8 +589,7 @@ namespace sync {
// delegate to run in the main gtk thread.
// To be consistent, any exceptions in the delgate will be caught
// and then rethrown in the synchronization thread.
- utils::main_context_call(boost::bind(
- sigc::mem_fun(*this, &SyncManager::update_note), existingNote, noteUpdate));
+ utils::main_context_call([this, existingNote, noteUpdate]() { update_note(existingNote, noteUpdate); });
}
@@ -603,8 +599,7 @@ namespace sync {
// delegate to run in the main gtk thread.
// To be consistent, any exceptions in the delgate will be caught
// and then rethrown in the synchronization thread.
- utils::main_context_call(boost::bind(
- sigc::mem_fun(*this, &SyncManager::delete_note), existingNote));
+ utils::main_context_call([this, existingNote]() { delete_note(existingNote); });
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]