sixtp-dom-generators.cpp (gnucash-5.0.tar.bz2) | : | sixtp-dom-generators.cpp (gnucash-5.1.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 207 | skipping to change at line 207 | |||
} | } | |||
else | else | |||
{ | { | |||
return g_strstrip (numstr); | return g_strstrip (numstr); | |||
} | } | |||
} | } | |||
static void | static void | |||
add_text_to_node (xmlNodePtr node, const gchar* type, gchar* val) | add_text_to_node (xmlNodePtr node, const gchar* type, gchar* val) | |||
{ | { | |||
gchar* newtype = g_strdup (type); | ||||
gchar* newval = g_strdup (val); | ||||
xmlSetProp (node, BAD_CAST "type", BAD_CAST type); | xmlSetProp (node, BAD_CAST "type", BAD_CAST type); | |||
xmlNodeSetContent (node, checked_char_cast (val)); | xmlNodeSetContent (node, checked_char_cast (val)); | |||
g_free (newtype); | ||||
g_free (newval); | ||||
} | } | |||
static void add_kvp_slot (const char* key, KvpValue* value, void* data); | static void add_kvp_slot (const char* key, KvpValue* value, void* data); | |||
static void | static void | |||
add_kvp_value_node (xmlNodePtr node, const gchar* tag, KvpValue* val) | add_kvp_value_node (xmlNodePtr node, const gchar* tag, KvpValue* val) | |||
{ | { | |||
xmlNodePtr val_node; | xmlNodePtr val_node; | |||
switch (val->get_type ()) | switch (val->get_type ()) | |||
End of changes. 2 change blocks. | ||||
4 lines changed or deleted | 0 lines changed or added |