summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorAllison Ryan Lortie <desrt@desrt.ca>2015-12-16 10:14:21 -0500
committerAllison Ryan Lortie <desrt@desrt.ca>2015-12-16 11:31:04 -0500
commit177740fe165f0c4f6215412f509c96b3a6fef336 (patch)
tree9b2e8af348d62fd960106b1c6650544299d1bc69 /engine
parent4594876cd2b3c80a827cfe1526e0779b72777cc2 (diff)
downloaddconf-177740fe165f0c4f6215412f509c96b3a6fef336.tar.gz
engine: some internal const-correctness changes
There is no reason that the read_through queue should not be 'const', so expose it as such. https://bugzilla.gnome.org/show_bug.cgi?id=759128
Diffstat (limited to 'engine')
-rw-r--r--engine/dconf-engine.c10
-rw-r--r--engine/dconf-engine.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/engine/dconf-engine.c b/engine/dconf-engine.c
index 7a621c2..bc36e52 100644
--- a/engine/dconf-engine.c
+++ b/engine/dconf-engine.c
@@ -429,14 +429,14 @@ dconf_engine_list_locks (DConfEngine *engine,
}
static gboolean
-dconf_engine_find_key_in_queue (GQueue *queue,
- const gchar *key,
- GVariant **value)
+dconf_engine_find_key_in_queue (const GQueue *queue,
+ const gchar *key,
+ GVariant **value)
{
GList *node;
/* Tail to head... */
- for (node = g_queue_peek_tail_link (queue); node; node = node->prev)
+ for (node = queue->tail; node; node = node->prev)
if (dconf_changeset_get (node->data, key, value))
return TRUE;
@@ -446,7 +446,7 @@ dconf_engine_find_key_in_queue (GQueue *queue,
GVariant *
dconf_engine_read (DConfEngine *engine,
DConfReadFlags flags,
- GQueue *read_through,
+ const GQueue *read_through,
const gchar *key)
{
GVariant *value = NULL;
diff --git a/engine/dconf-engine.h b/engine/dconf-engine.h
index e166d53..2485423 100644
--- a/engine/dconf-engine.h
+++ b/engine/dconf-engine.h
@@ -120,7 +120,7 @@ gchar ** dconf_engine_list_locks (DConfEn
G_GNUC_INTERNAL
GVariant * dconf_engine_read (DConfEngine *engine,
DConfReadFlags flags,
- GQueue *read_through,
+ const GQueue *read_through,
const gchar *key);
G_GNUC_INTERNAL