diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2010-12-26 23:07:17 -0500 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2010-12-26 23:28:19 -0500 |
commit | 298f634513e32745758b16ec16ae08da7502ea66 (patch) | |
tree | 4f5fbc3e7cb5ba40466d1da0d83fe912dd10c90b /examples | |
parent | cdb0993aa731c5efc54aa836a23d2a9b3280484c (diff) | |
download | glibmm-298f634513e32745758b16ec16ae08da7502ea66.tar.gz |
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<K, V> >): Added this specialization to deal with a
dictionary entry variant type.
(Variant< std::map<K, V> >): 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<Glib::ustring> >::get)
(Variant< std::vector<std::string> >::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.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dbus/well-known-address-client.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<Gio::AsyncResult>& 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; } |