changeset 918:19b7349bb8c8

Tidy up.
author zas_
date Wed, 23 Jul 2008 09:10:41 +0000
parents fac2a1ed31a6
children 3a939c88305c
files src/filedata.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/filedata.c	Wed Jul 23 09:00:38 2008 +0000
+++ b/src/filedata.c	Wed Jul 23 09:10:41 2008 +0000
@@ -309,14 +309,16 @@
 	if (!file_data_pool)
 		file_data_pool = g_hash_table_new(g_str_hash, g_str_equal);
 
-	if ((fd = g_hash_table_lookup(file_data_pool, path_utf8)))
+	fd = g_hash_table_lookup(file_data_pool, path_utf8);
+	if (fd)
 		{
 		file_data_ref(fd);
 		}
 		
 	if (!fd && file_data_planned_change_hash)
 		{
-		if ((fd = g_hash_table_lookup(file_data_planned_change_hash, path_utf8)))
+		fd = g_hash_table_lookup(file_data_planned_change_hash, path_utf8);
+		if (fd)
 			{
 			DEBUG_1("planned change: using %s -> %s", path_utf8, fd->path);
 			file_data_ref(fd);
@@ -1466,7 +1468,8 @@
 			file_data_unref(fd);
 			}
 
-		if ((ofd = g_hash_table_lookup(file_data_planned_change_hash, new_path)) != fd)
+		ofd = g_hash_table_lookup(file_data_planned_change_hash, new_path);
+		if (ofd != fd)
 			{
 			if (ofd)
 				{
@@ -1485,6 +1488,7 @@
 static void file_data_update_ci_dest(FileData *fd, const gchar *dest_path)
 {
 	gchar *old_path = fd->change->dest;
+
 	fd->change->dest = g_strdup(dest_path);
 	file_data_update_planned_change_hash(fd, old_path, fd->change->dest);
 	g_free(old_path);