summaryrefslogtreecommitdiff
path: root/glib/src/variantdict.ccg
diff options
context:
space:
mode:
Diffstat (limited to 'glib/src/variantdict.ccg')
-rw-r--r--glib/src/variantdict.ccg18
1 files changed, 8 insertions, 10 deletions
diff --git a/glib/src/variantdict.ccg b/glib/src/variantdict.ccg
index ddc061dd..6e069a30 100644
--- a/glib/src/variantdict.ccg
+++ b/glib/src/variantdict.ccg
@@ -21,19 +21,17 @@
namespace Glib
{
-bool VariantDict::lookup_value_variant(const Glib::ustring& key, const VariantType& expected_type, VariantBase& value) const
+bool
+VariantDict::lookup_value_variant(
+ const Glib::ustring& key, const VariantType& expected_type, VariantBase& value) const
{
- GVariant* const g_value =
- g_variant_dict_lookup_value(const_cast<GVariantDict*>(gobj()),
- key.c_str(),
- expected_type.gobj());
- if(!g_value)
- return false;
+ GVariant* const g_value = g_variant_dict_lookup_value(
+ const_cast<GVariantDict*>(gobj()), key.c_str(), expected_type.gobj());
+ if (!g_value)
+ return false;
value.init(g_value); // g_value is already referenced.
return true;
}
-} //namespace Glib
-
-
+} // namespace Glib