summaryrefslogtreecommitdiff
path: root/examples/dbus
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2015-07-15 13:16:43 +0200
committerMurray Cumming <murrayc@murrayc.com>2015-07-15 13:21:24 +0200
commitd5fbe0d1e69d81aae918834c3a0c561b99f2791f (patch)
tree93a5b57be2fc9b7ece03d8cc00f354c8e94f3e78 /examples/dbus
parenta776f52044af21d85a6aecd13f8496c7ce670e83 (diff)
downloadglibmm-d5fbe0d1e69d81aae918834c3a0c561b99f2791f.tar.gz
examples: Avoid more shadowed variables.
Diffstat (limited to 'examples/dbus')
-rw-r--r--examples/dbus/client_bus_listnames.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dbus/client_bus_listnames.cc b/examples/dbus/client_bus_listnames.cc
index 4507aec1..06fc5887 100644
--- a/examples/dbus/client_bus_listnames.cc
+++ b/examples/dbus/client_bus_listnames.cc
@@ -48,12 +48,12 @@ void on_dbus_proxy_available(Glib::RefPtr<Gio::AsyncResult>& result)
{
// The proxy's call method returns a tuple of the value(s) that the method
// call produces so just get the tuple as a VariantContainerBase.
- const auto result = proxy->call_sync("ListNames");
+ const auto call_result = proxy->call_sync("ListNames");
// Now extract the single item in the variant container which is the
// array of strings (the names).
Glib::Variant< std::vector<Glib::ustring>> names_variant;
- result.get_child(names_variant);
+ call_result.get_child(names_variant);
// Get the vector of strings.
std::vector<Glib::ustring> names = names_variant.get();