From 298f634513e32745758b16ec16ae08da7502ea66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Alburquerque?= Date: Sun, 26 Dec 2010 23:07:17 -0500 Subject: Variant: Add dictionary entry and dictionary specializations. * glib/src/varianttype.hg: * glib/src/variant_basictypes.h.m4: Renamed the glibmmVariant doxygen group to 'Variant'. * glib/src/variant.{ccg,hg}: Throw a std::out_of_range exception instead of a std::runtime_error one from methods that throw them because of indexes being out of bounds. (Variant< std::pair >): Added this specialization to deal with a dictionary entry variant type. (Variant< std::map >): Added this specialization to deal with variant dictionary types. (VariantContainerBase::get): Have this method throw a std::out_of_range exception if the index is out of range. (Variant< std::vector >::get) (Variant< std::vector >::get): Free the shallow copy of the returned string arrays in the get methods of the string variant arrays as the docs of the C API say. * gio/src/dbusconnection.hg: Added missing _IGNORE()'s. * gio/src/dbusproxy.hg: Updated a TODO. * examples/dbus/well-known-address-client.cc: Typo. --- examples/dbus/well-known-address-client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/dbus/well-known-address-client.cc b/examples/dbus/well-known-address-client.cc index dc69dae8..b8358ffb 100644 --- a/examples/dbus/well-known-address-client.cc +++ b/examples/dbus/well-known-address-client.cc @@ -64,7 +64,7 @@ void dbus_proxy_available(Glib::RefPtr& result) for(unsigned i = 0; i < names.size(); i++) std::cout << names[i] << "." << std::endl; } - catch (Glib::Error& error) + catch (const Glib::Error& error) { std::cerr << "Got an error: '" << error.what() << "'." << std::endl; } -- cgit v1.2.1