summaryrefslogtreecommitdiff
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 10:15:30 -0500
commita184c995bbc0c4a298df7349069bee166023d325 (patch)
tree9b2e8af348d62fd960106b1c6650544299d1bc69
parentc26d2a4c0287e389738fd8ecfde5861f3d22effd (diff)
downloaddconf-a184c995bbc0c4a298df7349069bee166023d325.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.
-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