gnucash stable: Multiple changes pushed

Christopher Lam clam at code.gnucash.org
Sat Dec 13 02:00:04 EST 2025


Updated	 via  https://github.com/Gnucash/gnucash/commit/455ea3e7 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e79db945 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/753e4354 (commit)
	from  https://github.com/Gnucash/gnucash/commit/48e1d765 (commit)



commit 455ea3e71a46d8d8baa33d4bae0ec38a5525c171
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Dec 8 12:35:13 2025 +0800

    [backend/xml] dom_tree_to_text returns std::optional<std::string>

commit e79db945b2ea6fd2e107cafd7ba502fd82db4cd7
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Tue Dec 9 17:16:42 2025 +0800

    [backend/xml] use apply_xmlnode_text

commit 753e4354561614c47784f6ee12c9d13a20bad5c2
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Tue Dec 9 17:15:58 2025 +0800

    [sixtp-dom-parsers.h] add templated functions for node text
    
    * apply_xmlnode_text (node, f, optional default_val)
      retrieves text; and calls and returns f(text)
      on failure (i.e. node==null || node has no text), it returns default_val
    
    * apply_xmlnode_text (node, obj, f)
      retrieves text; and calls and returns f(obj, text)
      on success, it will return true, on failure it returns false



Summary of changes:
 libgnucash/backend/xml/gnc-account-xml-v2.cpp      |  26 +-
 libgnucash/backend/xml/gnc-address-xml-v2.cpp      |  29 +-
 libgnucash/backend/xml/gnc-bill-term-xml-v2.cpp    |  15 +-
 libgnucash/backend/xml/gnc-budget-xml-v2.cpp       |  15 +-
 libgnucash/backend/xml/gnc-commodity-xml-v2.cpp    |  13 +-
 libgnucash/backend/xml/gnc-customer-xml-v2.cpp     |  40 +--
 libgnucash/backend/xml/gnc-employee-xml-v2.cpp     |  22 +-
 libgnucash/backend/xml/gnc-entry-xml-v2.cpp        |  87 ++----
 libgnucash/backend/xml/gnc-freqspec-xml-v2.cpp     |   7 +-
 libgnucash/backend/xml/gnc-invoice-xml-v2.cpp      |  18 +-
 libgnucash/backend/xml/gnc-job-xml-v2.cpp          |  20 +-
 libgnucash/backend/xml/gnc-order-xml-v2.cpp        |  19 +-
 libgnucash/backend/xml/gnc-owner-xml-v2.cpp        |  31 +-
 libgnucash/backend/xml/gnc-pricedb-xml-v2.cpp      |  12 +-
 libgnucash/backend/xml/gnc-recurrence-xml-v2.cpp   |  32 +-
 libgnucash/backend/xml/gnc-schedxaction-xml-v2.cpp |  44 +--
 libgnucash/backend/xml/gnc-tax-table-xml-v2.cpp    |  28 +-
 libgnucash/backend/xml/gnc-transaction-xml-v2.cpp  |  69 +----
 libgnucash/backend/xml/gnc-vendor-xml-v2.cpp       |  41 +--
 libgnucash/backend/xml/io-example-account.cpp      |   4 +-
 libgnucash/backend/xml/io-gncxml-v1.cpp            |  12 +-
 libgnucash/backend/xml/io-gncxml-v2.cpp            |   8 +-
 libgnucash/backend/xml/sixtp-dom-parsers.cpp       | 322 +++++++--------------
 libgnucash/backend/xml/sixtp-dom-parsers.h         |  34 ++-
 .../backend/xml/test/test-dom-converters1.cpp      |   6 +-
 libgnucash/backend/xml/test/test-file-stuff.cpp    |  18 +-
 .../backend/xml/test/test-string-converters.cpp    |  10 +-
 libgnucash/backend/xml/test/test-xml-account.cpp   |  11 +-
 libgnucash/backend/xml/test/test-xml-commodity.cpp |  11 +-
 .../backend/xml/test/test-xml-transaction.cpp      |  12 +-
 30 files changed, 318 insertions(+), 698 deletions(-)



More information about the gnucash-patches mailing list