[gnote] Remove boost::bind from NoteManagerBase
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove boost::bind from NoteManagerBase
- Date: Sat, 14 Jan 2017 16:12:10 +0000 (UTC)
commit d63b21107afdcbcf57b3ae8bf024a08c58a3d553
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Jan 14 17:56:44 2017 +0200
Remove boost::bind from NoteManagerBase
src/notemanagerbase.cpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/notemanagerbase.cpp b/src/notemanagerbase.cpp
index dd66437..76409df 100644
--- a/src/notemanagerbase.cpp
+++ b/src/notemanagerbase.cpp
@@ -19,7 +19,6 @@
*/
-#include <boost/bind.hpp>
#include <glibmm/i18n.h>
#include "debug.hpp"
@@ -159,7 +158,7 @@ TrieController *NoteManagerBase::create_trie_controller()
void NoteManagerBase::post_load()
{
- m_notes.sort(boost::bind(&compare_dates, _1, _2));
+ m_notes.sort(compare_dates);
// Update the trie so addins can access it, if they want.
m_trie_controller->update ();
@@ -201,13 +200,13 @@ void NoteManagerBase::add_note(const NoteBase::Ptr & note)
void NoteManagerBase::on_note_rename(const NoteBase::Ptr & note, const Glib::ustring & old_title)
{
signal_note_renamed(note, old_title);
- m_notes.sort(boost::bind(&compare_dates, _1, _2));
+ m_notes.sort(compare_dates);
}
void NoteManagerBase::on_note_save (const NoteBase::Ptr & note)
{
signal_note_saved(note);
- m_notes.sort(boost::bind(&compare_dates, _1, _2));
+ m_notes.sort(compare_dates);
}
NoteBase::Ptr NoteManagerBase::find(const Glib::ustring & linked_title) const
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]