summaryrefslogtreecommitdiff
path: root/gtk/gtktextbufferrichtext.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-05-30 21:28:30 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-06-02 09:08:15 -0400
commit5dc440295e63cc43d46b6a3cf4edac2b0d21e12b (patch)
tree389f8356b3055e3dde42e72ffdaa7535524eff53 /gtk/gtktextbufferrichtext.c
parenta111f6ee23046ac2d0d3319dae53dc8862152876 (diff)
downloadgtk+-5dc440295e63cc43d46b6a3cf4edac2b0d21e12b.tar.gz
text buffer: Fix compiler warnings
Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
Diffstat (limited to 'gtk/gtktextbufferrichtext.c')
-rw-r--r--gtk/gtktextbufferrichtext.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gtk/gtktextbufferrichtext.c b/gtk/gtktextbufferrichtext.c
index c888a98cf4..0132ea9536 100644
--- a/gtk/gtktextbufferrichtext.c
+++ b/gtk/gtktextbufferrichtext.c
@@ -543,8 +543,8 @@ gtk_text_buffer_deserialize (GtkTextBuffer *register_buffer,
gsize length,
GError **error)
{
- GList *formats;
- GList *list;
+ GList *formats;
+ GList *l;
g_return_val_if_fail (GTK_IS_TEXT_BUFFER (register_buffer), FALSE);
g_return_val_if_fail (GTK_IS_TEXT_BUFFER (content_buffer), FALSE);
@@ -554,12 +554,11 @@ gtk_text_buffer_deserialize (GtkTextBuffer *register_buffer,
g_return_val_if_fail (length > 0, FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
- formats = g_object_get_qdata (G_OBJECT (register_buffer),
- deserialize_quark ());
+ formats = g_object_get_qdata (G_OBJECT (register_buffer), deserialize_quark ());
- for (list = formats; list; list = g_list_next (list))
+ for (l = formats; l; l = l->next)
{
- GtkRichTextFormat *fmt = list->data;
+ GtkRichTextFormat *fmt = l->data;
if (fmt->atom == format)
{