summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-utils.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-utils.c
parentb24b77b028093bef5ebaf1fbdfb6b545f823486d (diff)
downloadappstream-glib-a6c7bf7dc59facde6b21ba1415d57d918a9ae8a4.tar.gz
trivial: Use G_DEFINE_QUARK
Diffstat (limited to 'libappstream-glib/as-utils.c')
-rw-r--r--libappstream-glib/as-utils.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libappstream-glib/as-utils.c b/libappstream-glib/as-utils.c
index 50b5a54..45a5b5f 100644
--- a/libappstream-glib/as-utils.c
+++ b/libappstream-glib/as-utils.c
@@ -55,14 +55,7 @@
*
* Since: 0.3.7
**/
-GQuark
-as_utils_error_quark (void)
-{
- static GQuark quark = 0;
- if (!quark)
- quark = g_quark_from_static_string ("AsUtilsError");
- return quark;
-}
+G_DEFINE_QUARK (as-utils-error-quark, as_utils_error)
/**
* as_markup_strsplit_words: