summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2011-03-29 11:15:30 +0200
committerMurray Cumming <murrayc@murrayc.com>2011-03-29 11:16:40 +0200
commit85252750b27d79458f6b91763c34c1829eac491b (patch)
treeb614b0755a9be7d5d373c71eb5c3d4c87417b70b /tests
parent00a2fa0f7f7fa2b998e8812e677a239f5d62ec49 (diff)
downloadglibmm-85252750b27d79458f6b91763c34c1829eac491b.tar.gz
Variant: Rename get(index) to get_child(index).
* glib/src/variant.[hg|ccg]: Rename all get() methods that return children to get_child() to make the API clearer and to avoid ambiguity with get() methods that return the underlying type instead. * examples/dbus/peer.cc: * examples/dbus/userbus.cc: * tests/glibmm_variant/main.cc: Adapted. https://bugzilla.gnome.org/show_bug.cgi?id=644207#c7 (Yannick Guesnet)
Diffstat (limited to 'tests')
-rw-r--r--tests/glibmm_variant/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/glibmm_variant/main.cc b/tests/glibmm_variant/main.cc
index efc151f0..816406e0 100644
--- a/tests/glibmm_variant/main.cc
+++ b/tests/glibmm_variant/main.cc
@@ -43,7 +43,7 @@ int main(int, char**)
unsigned index = 4;
ostr << "Element number " << index + 1 << " in the copy is " <<
- integers_variant.get(index) << '.' << std::endl;
+ integers_variant.get_child(index) << '.' << std::endl;
ostr << std::endl;
@@ -95,7 +95,7 @@ int main(int, char**)
index = 3;
- std::pair<unsigned, Glib::ustring> a_pair = orig_dict_variant.get(index);
+ std::pair<unsigned, Glib::ustring> a_pair = orig_dict_variant.get_child(index);
ostr << "Element number " << index + 1 << " in the variant is: (" <<
a_pair.first << ", " << a_pair.second << ")." << std::endl;