summaryrefslogtreecommitdiff
path: root/tests/glibmm_mainloop
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2015-07-15 14:22:59 +0200
committerMurray Cumming <murrayc@murrayc.com>2015-07-15 14:22:59 +0200
commitb5e068e288a0e9d031c725d5c9423d63daef6a44 (patch)
tree115f6415d22600a0f1d3df8c5e6d8ce2ff80d1b4 /tests/glibmm_mainloop
parentac8300539d154e6fb4d3663ed331971887df029d (diff)
downloadglibmm-b5e068e288a0e9d031c725d5c9423d63daef6a44.tar.gz
C++11: examples/tests: More use of auto.
Diffstat (limited to 'tests/glibmm_mainloop')
-rw-r--r--tests/glibmm_mainloop/main.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/glibmm_mainloop/main.cc b/tests/glibmm_mainloop/main.cc
index fbf70027..56bd02d9 100644
--- a/tests/glibmm_mainloop/main.cc
+++ b/tests/glibmm_mainloop/main.cc
@@ -50,8 +50,8 @@ bool mark_and_quit(const Glib::Threads::Thread* expected_thread,
void thread_function(const Glib::Threads::Thread* first_thread,
const Glib::RefPtr<Glib::MainLoop>& first_mainloop)
{
- Glib::RefPtr<Glib::MainContext> second_context = Glib::MainContext::create();
- Glib::RefPtr<Glib::MainLoop> second_mainloop = Glib::MainLoop::create(second_context);
+ auto second_context = Glib::MainContext::create();
+ auto second_mainloop = Glib::MainLoop::create(second_context);
// Show how Glib::MainContext::invoke() can be used for calling a function,
// possibly executed in another thread.
@@ -75,7 +75,7 @@ int main(int, char**)
{
Glib::init();
- Glib::RefPtr<Glib::MainLoop> first_mainloop = Glib::MainLoop::create();
+ auto first_mainloop = Glib::MainLoop::create();
// This thread shall be the owner of the default main context, when
// thread_function() calls mark_and_quit() via Glib::MainContext::invoke(),