From: Christian Dywan Date: Mon, 28 Nov 2011 22:35:58 +0000 (+0100) Subject: Use struct members in katze_item_set_value_from_column X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=668689fd17844464bedbd9d7a8df4ccfe371a548;p=midori Use struct members in katze_item_set_value_from_column --- diff --git a/midori/midori-array.c b/midori/midori-array.c index 66f089c1..28d08cee 100644 --- a/midori/midori-array.c +++ b/midori/midori-array.c @@ -967,19 +967,19 @@ katze_item_set_value_from_column (sqlite3_stmt* stmt, const unsigned char* uri; uri = sqlite3_column_text (stmt, column); if (uri && uri[0] && uri[0] != '(') - katze_item_set_uri (item, (gchar*)uri); + item->uri = g_strdup ((gchar*)uri); } else if (g_str_equal (name, "title") || g_str_equal (name, "name")) { const unsigned char* title; title = sqlite3_column_text (stmt, column); - katze_item_set_name (item, (gchar*)title); + item->name = g_strdup ((gchar*)title); } else if (g_str_equal (name, "date")) { gint date; date = sqlite3_column_int64 (stmt, column); - katze_item_set_added (item, date); + item->added = date; } else if (g_str_equal (name, "day") || g_str_equal (name, "app") || g_str_equal (name, "toolbar")) @@ -998,7 +998,7 @@ katze_item_set_value_from_column (sqlite3_stmt* stmt, { const unsigned char* text; text = sqlite3_column_text (stmt, column); - katze_item_set_text (item, (gchar*)text); + item->text = g_strdup ((gchar*)text); } else g_warn_if_reached ();