summaryrefslogtreecommitdiff
path: root/gio/giomm
diff options
context:
space:
mode:
Diffstat (limited to 'gio/giomm')
-rw-r--r--gio/giomm/contenttype.cc4
-rw-r--r--gio/giomm/slot_async.cc2
-rw-r--r--gio/giomm/socketsource.h3
3 files changed, 5 insertions, 4 deletions
diff --git a/gio/giomm/contenttype.cc b/gio/giomm/contenttype.cc
index a01a487e..74efd24a 100644
--- a/gio/giomm/contenttype.cc
+++ b/gio/giomm/contenttype.cc
@@ -50,7 +50,7 @@ Glib::ustring content_type_get_mime_type(const Glib::ustring& type)
Glib::RefPtr<Gio::Icon> content_type_get_icon(const Glib::ustring& type)
{
- Glib::RefPtr<Icon> retvalue = Glib::wrap(g_content_type_get_icon(type.c_str()));
+ auto retvalue = Glib::wrap(g_content_type_get_icon(type.c_str()));
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
@@ -59,7 +59,7 @@ Glib::RefPtr<Gio::Icon> content_type_get_icon(const Glib::ustring& type)
#ifdef G_OS_UNIX
Glib::RefPtr<Gio::Icon> content_type_get_symbolic_icon(const Glib::ustring& type)
{
- Glib::RefPtr<Icon> retvalue = Glib::wrap(g_content_type_get_symbolic_icon(type.c_str()));
+ auto retvalue = Glib::wrap(g_content_type_get_symbolic_icon(type.c_str()));
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
diff --git a/gio/giomm/slot_async.cc b/gio/giomm/slot_async.cc
index 8db82bc8..31f90778 100644
--- a/gio/giomm/slot_async.cc
+++ b/gio/giomm/slot_async.cc
@@ -31,7 +31,7 @@ SignalProxy_async_callback(GObject*, GAsyncResult* res, void* data)
try
{
- Glib::RefPtr<Gio::AsyncResult> result = Glib::wrap(res, true /* take copy */);
+ auto result = Glib::wrap(res, true /* take copy */);
(*the_slot)(result);
}
catch(...)
diff --git a/gio/giomm/socketsource.h b/gio/giomm/socketsource.h
index f166d753..77bec405 100644
--- a/gio/giomm/socketsource.h
+++ b/gio/giomm/socketsource.h
@@ -45,7 +45,7 @@ public:
* is equivalent to:
* @code
* bool io_handler(Glib::IOCondition io_condition) { ... }
- * const Glib::RefPtr<Gio::SocketSource> socket_source = Gio::SocketSource::create(socket, Glib::IO_IN | Glib::IO_OUT);
+ * const auto socket_source = Gio::SocketSource::create(socket, Glib::IO_IN | Glib::IO_OUT);
* socket_source->connect(sigc::ptr_fun(&io_handler));
* socket_source->attach(Glib::MainContext::get_default());
* @endcode
@@ -55,6 +55,7 @@ public:
* object's MainContext runs.
*
* @newin{2,42}
+ *
* @param slot A slot to call when polling @a socket results in an event that matches @a condition.
* The event will be passed as a parameter to @a slot.
* If <tt>io_handler()</tt> returns <tt>false</tt> the handler is disconnected.