summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-icon.c
diff options
context:
space:
mode:
authorKalev Lember <klember@redhat.com>2016-01-21 14:31:11 +0100
committerKalev Lember <klember@redhat.com>2016-01-21 14:31:11 +0100
commita6c7bf7dc59facde6b21ba1415d57d918a9ae8a4 (patch)
tree82fb1d29c228aaecceeb06306c2bc6773e30e5d2 /libappstream-glib/as-icon.c
parentb24b77b028093bef5ebaf1fbdfb6b545f823486d (diff)
downloadappstream-glib-a6c7bf7dc59facde6b21ba1415d57d918a9ae8a4.tar.gz
trivial: Use G_DEFINE_QUARK
Diffstat (limited to 'libappstream-glib/as-icon.c')
-rw-r--r--libappstream-glib/as-icon.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libappstream-glib/as-icon.c b/libappstream-glib/as-icon.c
index a23b6ca..0f6530c 100644
--- a/libappstream-glib/as-icon.c
+++ b/libappstream-glib/as-icon.c
@@ -64,14 +64,7 @@ G_DEFINE_TYPE_WITH_PRIVATE (AsIcon, as_icon, G_TYPE_OBJECT)
*
* Since: 0.3.1
**/
-GQuark
-as_icon_error_quark (void)
-{
- static GQuark quark = 0;
- if (!quark)
- quark = g_quark_from_static_string ("AsIconError");
- return quark;
-}
+G_DEFINE_QUARK (as-icon-error-quark, as_icon_error)
/**
* as_icon_finalize: