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-node.c | |
parent | b24b77b028093bef5ebaf1fbdfb6b545f823486d (diff) | |
download | appstream-glib-a6c7bf7dc59facde6b21ba1415d57d918a9ae8a4.tar.gz |
trivial: Use G_DEFINE_QUARK
Diffstat (limited to 'libappstream-glib/as-node.c')
-rw-r--r-- | libappstream-glib/as-node.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libappstream-glib/as-node.c b/libappstream-glib/as-node.c index 32aadfb..0666f8c 100644 --- a/libappstream-glib/as-node.c +++ b/libappstream-glib/as-node.c @@ -169,14 +169,7 @@ as_node_unref (AsNode *node) * * Since: 0.1.0 **/ -GQuark -as_node_error_quark (void) -{ - static GQuark quark = 0; - if (!quark) - quark = g_quark_from_static_string ("AsNodeError"); - return quark; -} +G_DEFINE_QUARK (as-node-error-quark, as_node_error) /** * as_node_string_replace: |