Combine add_colname_to_list and add_gvalue_to_slist into single function add_value_to_vec.

The two lists were always used together so replace them with a single
vector of std::pair<std::string, std::string>; this also gets rid of the
intermediate GValue which was used to convert the returned value to a string.
operator<<() can do that for us more transparently.

Also template most of the add_value_to_vec functions.
This commit is contained in:
John Ralls
2016-03-12 11:32:27 -08:00
parent 96a8a7b99f
commit 7d4ca43fd0
16 changed files with 406 additions and 838 deletions

View File

@@ -314,8 +314,7 @@ load_commodity_guid (const GncSqlBackend* be, GncSqlRow* row,
static GncSqlColumnTypeHandler commodity_guid_handler
= { load_commodity_guid,
gnc_sql_add_objectref_guid_col_info_to_list,
gnc_sql_add_colname_to_list,
gnc_sql_add_gvalue_objectref_guid_to_slist
gnc_sql_add_objectref_guid_to_vec
};
/* ================================================================= */
void