[gnote] Fix deprecations in note rename dialog
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix deprecations in note rename dialog
- Date: Wed, 21 Sep 2022 19:36:04 +0000 (UTC)
commit 4379e06948da4beceb57cd9d338839ef7c67cc44
Author: Aurimas Černius <aurisc4 gmail com>
Date: Wed Sep 21 22:35:44 2022 +0300
Fix deprecations in note rename dialog
src/noterenamedialog.cpp | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/noterenamedialog.cpp b/src/noterenamedialog.cpp
index bc01348f..3900da4f 100644
--- a/src/noterenamedialog.cpp
+++ b/src/noterenamedialog.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2011-2014,2017,2019,2021 Aurimas Cernius
+ * Copyright (C) 2011-2014,2017,2019,2021-2022 Aurimas Cernius
* Copyright (C) 2010 Debarshi Ray
*
* This program is free software: you can redistribute it and/or modify
@@ -23,8 +23,6 @@
#endif
#include <algorithm>
-#include <functional>
-#include <utility>
#include <glibmm/i18n.h>
#include <gtkmm/expander.h>
@@ -85,22 +83,17 @@ gint ModelColumnRecord::get_column_note_num() const
}
class ModelFiller
- : public std::unary_function<const NoteBase::Ptr &, void>
{
public:
-
- ModelFiller(const Glib::RefPtr<Gtk::ListStore> & list_store);
+ explicit ModelFiller(const Glib::RefPtr<Gtk::ListStore> & list_store);
void operator()(const NoteBase::Ptr & note);
-
private:
-
Glib::RefPtr<Gtk::ListStore> m_list_store;
};
ModelFiller::ModelFiller(
const Glib::RefPtr<Gtk::ListStore> & list_store)
- : std::unary_function<const NoteBase::Ptr &, void>()
- , m_list_store(list_store)
+ : m_list_store(list_store)
{
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]