diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2013-08-05 21:07:35 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2013-08-05 21:07:35 +0000 |
| commit | c0f2f5606f0884e00f426653168b84b23d26ffb3 (patch) | |
| tree | bf8d55883afbd6fedb3428788c86fa117529023a /src/helper/gnome-utils.cpp | |
| parent | fix memleak (rows) (diff) | |
| download | inkscape-c0f2f5606f0884e00f426653168b84b23d26ffb3.tar.gz inkscape-c0f2f5606f0884e00f426653168b84b23d26ffb3.zip | |
code cleanup (cppcheck)
(bzr r12469)
Diffstat (limited to 'src/helper/gnome-utils.cpp')
| -rw-r--r-- | src/helper/gnome-utils.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/helper/gnome-utils.cpp b/src/helper/gnome-utils.cpp index d0bcaf8cd..957b7ea5e 100644 --- a/src/helper/gnome-utils.cpp +++ b/src/helper/gnome-utils.cpp @@ -83,17 +83,15 @@ gnome_uri_list_extract_uris (const gchar* uri_list) GList* gnome_uri_list_extract_filenames (const gchar* uri_list) { - GList *tmp_list, *node, *result; - g_return_val_if_fail (uri_list != NULL, NULL); - result = gnome_uri_list_extract_uris (uri_list); + GList *result = gnome_uri_list_extract_uris (uri_list); - tmp_list = result; + GList *tmp_list = result; while (tmp_list) { gchar *s = (gchar*)tmp_list->data; - node = tmp_list; + GList *node = tmp_list; tmp_list = tmp_list->next; if (!strncmp (s, "file:", 5)) { |
