Use struct members in katze_item_set_value_from_column
This commit is contained in:
parent
5c08872066
commit
668689fd17
1 changed files with 4 additions and 4 deletions
|
@ -967,19 +967,19 @@ katze_item_set_value_from_column (sqlite3_stmt* stmt,
|
||||||
const unsigned char* uri;
|
const unsigned char* uri;
|
||||||
uri = sqlite3_column_text (stmt, column);
|
uri = sqlite3_column_text (stmt, column);
|
||||||
if (uri && uri[0] && uri[0] != '(')
|
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"))
|
else if (g_str_equal (name, "title") || g_str_equal (name, "name"))
|
||||||
{
|
{
|
||||||
const unsigned char* title;
|
const unsigned char* title;
|
||||||
title = sqlite3_column_text (stmt, column);
|
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"))
|
else if (g_str_equal (name, "date"))
|
||||||
{
|
{
|
||||||
gint date;
|
gint date;
|
||||||
date = sqlite3_column_int64 (stmt, column);
|
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")
|
else if (g_str_equal (name, "day") || g_str_equal (name, "app")
|
||||||
|| g_str_equal (name, "toolbar"))
|
|| g_str_equal (name, "toolbar"))
|
||||||
|
@ -998,7 +998,7 @@ katze_item_set_value_from_column (sqlite3_stmt* stmt,
|
||||||
{
|
{
|
||||||
const unsigned char* text;
|
const unsigned char* text;
|
||||||
text = sqlite3_column_text (stmt, column);
|
text = sqlite3_column_text (stmt, column);
|
||||||
katze_item_set_text (item, (gchar*)text);
|
item->text = g_strdup ((gchar*)text);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
g_warn_if_reached ();
|
g_warn_if_reached ();
|
||||||
|
|
Loading…
Reference in a new issue