summaryrefslogtreecommitdiff
path: root/glib/src/variantdict.hg
diff options
context:
space:
mode:
Diffstat (limited to 'glib/src/variantdict.hg')
-rw-r--r--glib/src/variantdict.hg4
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/src/variantdict.hg b/glib/src/variantdict.hg
index 7b668691..296f1e2d 100644
--- a/glib/src/variantdict.hg
+++ b/glib/src/variantdict.hg
@@ -102,7 +102,7 @@ public:
template <typename T_Value>
void VariantDict::insert_value(const Glib::ustring& key, const T_Value& value)
{
- typedef Glib::Variant<T_Value> type_glib_variant;
+ using type_glib_variant = Glib::Variant<T_Value>;
//TODO: Can we do any check like this here, before glib does?
//g_return_val_if_fail(
@@ -116,7 +116,7 @@ bool VariantDict::lookup_value(const Glib::ustring& key, T_Value& value) const
{
value = T_Value(); //Make sure that it is initialized.
- typedef Glib::Variant<T_Value> type_glib_variant;
+ using type_glib_variant = Glib::Variant<T_Value>;
//TODO: Can we do any check like this here, before glib does?
//g_variant_type_equal(g_action_group_get_action_state_type(const_cast<GActionGroup*>(gobj()), action_name.c_str()), type_glib_variant::variant_type().gobj()));