diff options
author | Kalev Lember <klember@redhat.com> | 2016-01-21 14:31:11 +0100 |
---|---|---|
committer | Kalev Lember <klember@redhat.com> | 2016-01-21 14:31:11 +0100 |
commit | a6c7bf7dc59facde6b21ba1415d57d918a9ae8a4 (patch) | |
tree | 82fb1d29c228aaecceeb06306c2bc6773e30e5d2 /libappstream-glib/as-utils.c | |
parent | b24b77b028093bef5ebaf1fbdfb6b545f823486d (diff) | |
download | appstream-glib-a6c7bf7dc59facde6b21ba1415d57d918a9ae8a4.tar.gz |
trivial: Use G_DEFINE_QUARK
Diffstat (limited to 'libappstream-glib/as-utils.c')
-rw-r--r-- | libappstream-glib/as-utils.c | 9 |
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: |