[geany/geany] 27e445: Drop g_list_reverse()

Jiří Techet git-noreply at xxxxx
Thu Jun 9 08:30:07 UTC 2016


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Thu, 09 Jun 2016 08:30:07 UTC
Commit:      27e445550285f2ee8785ad84822c3463a238f95c
             https://github.com/geany/geany/commit/27e445550285f2ee8785ad84822c3463a238f95c

Log Message:
-----------
Drop g_list_reverse()

Since the original include list is already reordered by the hash table,
it makes no sense to reverse the resulting list as it's in a different
order anyway.


Modified Paths:
--------------
    tagmanager/src/tm_workspace.c

Modified: tagmanager/src/tm_workspace.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -542,7 +542,7 @@ static GList *lookup_includes(const gchar **includes, gint includes_count)
 	g_hash_table_foreach(table, tm_move_entries_to_g_list, &includes_files);
 	g_hash_table_destroy(table);
 
-	return g_list_reverse(includes_files);
+	return includes_files;
 }
 
 static gchar *pre_process_file(const gchar *cmd, const gchar *inf)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list