[gnote] Move semantics for NoteAddin
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Move semantics for NoteAddin
- Date: Sun, 22 May 2022 19:49:55 +0000 (UTC)
commit 757feedd58752300b6c16a9426aa1d7a40efc698
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun May 22 22:21:58 2022 +0300
Move semantics for NoteAddin
src/noteaddin.cpp | 6 +++---
src/noteaddin.hpp | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/noteaddin.cpp b/src/noteaddin.cpp
index ddb60ca0..9513fec0 100644
--- a/src/noteaddin.cpp
+++ b/src/noteaddin.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2012-2016,2019 Aurimas Cernius
+ * Copyright (C) 2012-2016,2019,2022 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -175,9 +175,9 @@ namespace gnote {
return std::vector<gnote::PopoverWidget>();
}
- void NoteAddin::register_main_window_action_callback(const Glib::ustring & action, sigc::slot<void, const
Glib::VariantBase&> callback)
+ void NoteAddin::register_main_window_action_callback(const Glib::ustring & action, sigc::slot<void, const
Glib::VariantBase&> && callback)
{
- m_action_callbacks.emplace_back(action, callback);
+ m_action_callbacks.emplace_back(action, std::move(callback));
}
}
diff --git a/src/noteaddin.hpp b/src/noteaddin.hpp
index 50e854cd..fba5e42f 100644
--- a/src/noteaddin.hpp
+++ b/src/noteaddin.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2012-2016,2019,2021 Aurimas Cernius
+ * Copyright (C) 2012-2016,2019,2021-2022 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -72,7 +72,7 @@ public:
virtual void on_note_opened () = 0;
virtual std::vector<PopoverWidget> get_actions_popover_widgets() const;
- void register_main_window_action_callback(const Glib::ustring & action, sigc::slot<void, const
Glib::VariantBase&> callback);
+ void register_main_window_action_callback(const Glib::ustring & action, sigc::slot<void, const
Glib::VariantBase&> && callback);
const Note::Ptr & get_note() const
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]