summaryrefslogtreecommitdiff
path: root/gio/src/dbusintrospection.ccg
diff options
context:
space:
mode:
Diffstat (limited to 'gio/src/dbusintrospection.ccg')
-rw-r--r--gio/src/dbusintrospection.ccg20
1 files changed, 11 insertions, 9 deletions
diff --git a/gio/src/dbusintrospection.ccg b/gio/src/dbusintrospection.ccg
index 788ea319..4a37d378 100644
--- a/gio/src/dbusintrospection.ccg
+++ b/gio/src/dbusintrospection.ccg
@@ -26,29 +26,31 @@ namespace Gio
namespace DBus
{
-//We hand-code this because g_dbus_node_info_lookup_interface() doesn't
-//do this when it takes a nullptr.
-//See bug https://bugzilla.gnome.org/show_bug.cgi?id=646417
-Glib::RefPtr<InterfaceInfo> NodeInfo::lookup_interface()
+// We hand-code this because g_dbus_node_info_lookup_interface() doesn't
+// do this when it takes a nullptr.
+// See bug https://bugzilla.gnome.org/show_bug.cgi?id=646417
+Glib::RefPtr<InterfaceInfo>
+NodeInfo::lookup_interface()
{
Glib::RefPtr<InterfaceInfo> retvalue;
- if(!gobj() || !(gobj()->interfaces))
+ if (!gobj() || !(gobj()->interfaces))
return retvalue;
retvalue = Glib::wrap(gobj()->interfaces[0]);
- if(retvalue)
- retvalue->reference(); //The function does not do a ref for us.
+ if (retvalue)
+ retvalue->reference(); // The function does not do a ref for us.
return retvalue;
}
-Glib::RefPtr<const InterfaceInfo> NodeInfo::lookup_interface() const
+Glib::RefPtr<const InterfaceInfo>
+NodeInfo::lookup_interface() const
{
return const_cast<NodeInfo*>(this)->lookup_interface();
}
-} //namespace DBus
+} // namespace DBus
} // namespace Gio