Merge Simon Arlott's 'string-cache-fixes' into maint.

This commit is contained in:
John Ralls 2021-08-04 14:26:27 -07:00
commit 9062be3d47
2 changed files with 6 additions and 6 deletions

View File

@ -564,8 +564,8 @@ xaccDupeSplit (const Split *s)
split->orig_acc = s->orig_acc;
split->lot = s->lot;
split->memo = CACHE_INSERT(s->memo);
split->action = CACHE_INSERT(s->action);
CACHE_REPLACE(split->memo, s->memo);
CACHE_REPLACE(split->action, s->action);
qof_instance_copy_kvp (QOF_INSTANCE (split), QOF_INSTANCE (s));

View File

@ -602,8 +602,8 @@ dupe_trans (const Transaction *from)
to = g_object_new (GNC_TYPE_TRANSACTION, NULL);
to->num = CACHE_INSERT (from->num);
to->description = CACHE_INSERT (from->description);
CACHE_REPLACE (to->num, from->num);
CACHE_REPLACE (to->description, from->description);
to->splits = g_list_copy (from->splits);
for (node = to->splits; node; node = node->next)
@ -647,8 +647,8 @@ xaccTransCloneNoKvp (const Transaction *from)
to->date_entered = from->date_entered;
to->date_posted = from->date_posted;
to->num = CACHE_INSERT (from->num);
to->description = CACHE_INSERT (from->description);
CACHE_REPLACE (to->num, from->num);
CACHE_REPLACE (to->description, from->description);
to->common_currency = from->common_currency;
qof_instance_copy_version(to, from);
qof_instance_copy_version_check(to, from);