summaryrefslogtreecommitdiff
path: root/gio/src/socketconnection.ccg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2015-07-15 12:45:22 +0200
committerMurray Cumming <murrayc@murrayc.com>2015-07-15 12:45:22 +0200
commit40f91e93e079a59d6e39bf0f7f2012357d3ee763 (patch)
tree8fcaf53512a26f6440362b87d3139d634eb76dd6 /gio/src/socketconnection.ccg
parent254f5b93e08e45cd32ccdbb0f4a31c433ece9d08 (diff)
downloadglibmm-40f91e93e079a59d6e39bf0f7f2012357d3ee763.tar.gz
C++11: Some use of the auto keyword.
Diffstat (limited to 'gio/src/socketconnection.ccg')
-rw-r--r--gio/src/socketconnection.ccg4
1 files changed, 2 insertions, 2 deletions
diff --git a/gio/src/socketconnection.ccg b/gio/src/socketconnection.ccg
index 8bd85788..79094c16 100644
--- a/gio/src/socketconnection.ccg
+++ b/gio/src/socketconnection.ccg
@@ -28,7 +28,7 @@ SocketConnection::connect_async(const Glib::RefPtr<SocketAddress>& address,
const SlotAsyncReady& slot,
const Glib::RefPtr<Cancellable>& cancellable)
{
- SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
+ auto slot_copy = new SlotAsyncReady(slot);
g_socket_connection_connect_async(gobj(),
Glib::unwrap(address),
@@ -41,7 +41,7 @@ void
SocketConnection::connect_async(const Glib::RefPtr<SocketAddress>& address,
const SlotAsyncReady& slot)
{
- SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
+ auto slot_copy = new SlotAsyncReady(slot);
g_socket_connection_connect_async(gobj(),
Glib::unwrap(address),