[glibmm/glibmm-2-66] Gio::DBus::Proxy: Add some refreturn
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-66] Gio::DBus::Proxy: Add some refreturn
- Date: Fri, 29 Jul 2022 15:19:25 +0000 (UTC)
commit 22e5d25c4cec944f7c4aeee1fdd94d3976842b4f
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Fri Jul 29 17:17:05 2022 +0200
Gio::DBus::Proxy: Add some refreturn
get_connection() and get_interface_info() must add a reference.
The error in get_connection() was noticed by 우정모 (kr.woaini).
Fixes #102
gio/src/dbusproxy.hg | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gio/src/dbusproxy.hg b/gio/src/dbusproxy.hg
index a0f1cdc3..4b90097d 100644
--- a/gio/src/dbusproxy.hg
+++ b/gio/src/dbusproxy.hg
@@ -223,8 +223,8 @@ public:
_WRAP_METHOD(ProxyFlags get_flags() const, g_dbus_proxy_get_flags)
- _WRAP_METHOD(Glib::RefPtr<Connection> get_connection(), g_dbus_proxy_get_connection)
- _WRAP_METHOD(Glib::RefPtr<const Connection> get_connection() const, g_dbus_proxy_get_connection)
+ _WRAP_METHOD(Glib::RefPtr<Connection> get_connection(), g_dbus_proxy_get_connection, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const Connection> get_connection() const, g_dbus_proxy_get_connection,
refreturn, constversion)
_WRAP_METHOD(Glib::ustring get_name() const, g_dbus_proxy_get_name)
_WRAP_METHOD(Glib::ustring get_name_owner() const, g_dbus_proxy_get_name_owner)
@@ -256,8 +256,8 @@ public:
_WRAP_METHOD(Glib::StringArrayHandle get_cached_property_names() const,
g_dbus_proxy_get_cached_property_names)
_WRAP_METHOD(void set_interface_info(const Glib::RefPtr<InterfaceInfo>& info),
g_dbus_proxy_set_interface_info)
- _WRAP_METHOD(Glib::RefPtr<InterfaceInfo> get_interface_info(), g_dbus_proxy_get_interface_info)
- _WRAP_METHOD(Glib::RefPtr<const InterfaceInfo> get_interface_info() const,
g_dbus_proxy_get_interface_info, constversion)
+ _WRAP_METHOD(Glib::RefPtr<InterfaceInfo> get_interface_info(), g_dbus_proxy_get_interface_info, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const InterfaceInfo> get_interface_info() const,
g_dbus_proxy_get_interface_info, refreturn, constversion)
_WRAP_METHOD(
void call(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]