"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libgnucash/engine/qofinstance.cpp" between
gnucash-5.0.tar.bz2 and gnucash-5.1.tar.bz2

About: GnuCash is personal and small-business financial-accounting software.

qofinstance.cpp  (gnucash-5.0.tar.bz2):qofinstance.cpp  (gnucash-5.1.tar.bz2)
skipping to change at line 1104 skipping to change at line 1104
int int
qof_instance_compare_kvp (const QofInstance *a, const QofInstance *b) qof_instance_compare_kvp (const QofInstance *a, const QofInstance *b)
{ {
return compare(a->kvp_data, b->kvp_data); return compare(a->kvp_data, b->kvp_data);
} }
char* char*
qof_instance_kvp_as_string (const QofInstance *inst) qof_instance_kvp_as_string (const QofInstance *inst)
{ {
//The std::string is a local temporary and doesn't survive this function. auto str{inst->kvp_data->to_string()};
return g_strdup(inst->kvp_data->to_string().c_str()); return g_strdup(str.c_str());
} }
void void
qof_instance_kvp_add_guid (const QofInstance *inst, const char* path, qof_instance_kvp_add_guid (const QofInstance *inst, const char* path,
time64 time, const char *key, time64 time, const char *key,
const GncGUID *guid) const GncGUID *guid)
{ {
g_return_if_fail (inst->kvp_data != NULL); g_return_if_fail (inst->kvp_data != NULL);
auto container = new KvpFrame; auto container = new KvpFrame;
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)