John Ralls
ad7a51a6ef
Merge Chris Lam's 'acc-children-vector' into stable.
2 years ago
Robert Fewell
8bd7deb3dc
Reapply filter when number of sub-accounts change
...
When viewing a register that displays sub-accounts, if the number of
sub-accounts is changed, the query is rebuilt from the remaining
sub-accounts but when a filter is being used it is not applied after.
Fixed by checking the original query for a filter and if so applying
that after query rebuilt.
2 years ago
Christopher Lam
a6463f9814
[utest-Account] add more balance limit tests
2 years ago
Christopher Lam
b7fde90411
[Account.cpp] xaccAccountStagedTransactionTraversal copies SplitsVec
...
because create_transactions_for_instance which calls
xaccAccountStagedTransactionTraversal will modify the splits
2 years ago
Christopher Lam
cd097d19ec
[Account.cpp] don't copy SplitsVec
2 years ago
Christopher Lam
119e257146
[Transaction|Split.cpp] Remove Reg2 unused functions
2 years ago
Christopher Lam
47791734bb
[SX-ttinfo.cpp] tidier, using c++ stl and algo
2 years ago
Christopher Lam
ddc7958801
[~qofchoice.cpp] remove, not useful
...
because the options GLists are populated, but are never actually
queried. The QOF_TYPE_CHOICE definition is moved to qofclass.h
2 years ago
Christopher Lam
d1807b6c15
[engine.i] move gnc_accounts_and_all_descendants to engine.i
2 years ago
Christopher Lam
6cac9d0ebb
[Account.cpp] priv->children is a vector<Account*>
2 years ago
Daniel Harding
c4d44ea024
Bug 799324 - Invalid free in gvalue_from_kvp_value()
...
As of ddc3f28899 , gvalue_from_kvp_value()
takes a GValue pointer from the caller, which in some cases points to
memory on the stack. If that is the case and the code also hits the
default case in the switch statement, the unconditional g_slice_free()
call will attempt to free stack memory, causing the program to abort.
Fix by requiring the caller to always pass in a valid GValue pointer,
making the caller responsible for freeing it if necessary. This also
means that it is no longer necessary for gvalue_from_kvp_value() to
return a value, so make it a void function.
2 years ago
Christopher Lam
6c7abb487d
[SX-ttinfo.hpp] convert to c++ header
2 years ago
Christopher Lam
7dc2e2e6f9
[SchedXaction.cpp] use c++ algo
2 years ago
Christopher Lam
55592efe25
[SchedXAction.cpp] convert to c++
2 years ago
Christopher Lam
109497d471
[SX-ttinfo.cpp] convert to c++
2 years ago
Christopher Lam
5b1bb1186f
[SX-book.cpp] convert to c++
2 years ago
Christopher Lam
e80249ce2b
[Account.cpp] gnc_account_remove_split shortcuts removing last split
...
this speeds up book shutdown which empties the account splits in
reverse chrono order.
2 years ago
Geert Janssens
c816d2b34f
Doxygen - minor cleanup of gnc-lot.h
2 years ago
Geert Janssens
e8d72ad53f
Doxygen - merge separate txt files into respective header files
2 years ago
Geert Janssens
6cd8e4e458
Doxygen - drop obvious cases of deprecated code
2 years ago
Geert Janssens
da12a212c3
Drop old migration script to split qof from engine
2 years ago
Geert Janssens
39aa5f9c09
Remove texi design document in engine
...
It's extremely out of date and we no longer use it to keep track
of our design decisions and suggestions.
Only a section on KVP policy has been move into kvp_doc.txt
as it may make sense there.
2 years ago
Geert Janssens
58b4ee35f0
Doxygen - drop several txt files that were included in
...
docygen_mainpage.c
None of them had useful information describing actual
implementation concepts or details.
2 years ago
Geert Janssens
3c860737f1
Doxygen - fold business.txt file in the respective source files
...
The file mostly had short descriptions that were very similar
to the descriptions of business objects it referred to. The
exception was an explanation of how the billing terms and
tax tables handled their immutable copies. That bit has been
moved to its own group under the Business group and is referenced
from the BillTerm and TaxTables group.
This commit also fixes rendering of the Address doxygen info
and expands the BillTerm info to explain how proximo due dates
work.
2 years ago
Christopher Lam
038405b370
Revert "[account.cpp] gnc_account_remove_split searches from the end"
...
This reverts commit 5aff4fb57d . Was not
tested properly...
2 years ago
Christopher Lam
5aff4fb57d
[account.cpp] gnc_account_remove_split searches from the end
...
because removing the latest split is far more common (e.g. from ui or
during book shutdown) than removing an early split.
2 years ago
Christopher Lam
370a06fb61
[qofid.cpp] remove unnecessary struct
2 years ago
Christopher Lam
fe2cdf42c7
[transaction.cpp] speed up book close
2 years ago
Christopher Lam
d21d6f9344
[qofid.cpp] qof_collection_foreach_sorted
2 years ago
Christopher Lam
7b46466ebd
[account.cpp] fix regression caused by 3f7a5a8267
...
whereby deleting an account and moving all splits to another account
would segfault. make a copy of priv->splits and work on the copy
rather than the original.
2 years ago
Christopher Lam
e54e9d8086
[account.cpp] use HashTable for splits
...
reduces xml loading time from 3.5s to 3.1s, i.e. 11% improvement
2 years ago
Christopher Lam
b28ca9bdb4
use c++ placement new
...
to initialize non-c++ object members
2 years ago
John Ralls
579da58a10
Merge Gwynn Ciesla's "Allow building with GCC 14.1" into stable.
2 years ago
Christopher Lam
2817ca195f
[test-commodities.cpp] test stability of c_str names
2 years ago
Christopher Lam
f67233b662
Bug 799305 - Crash when there is more than one unknown quote source for commodities
...
instead of vector which requires reallocation, use a c++ linked list.
2 years ago
Christopher Lam
d867a9d18a
Merge branch 'TransactionP-hpp' into stable #1928
2 years ago
Christopher Lam
9e4b03f71b
[SplitP.hpp] rename to .hpp
2 years ago
Christopher Lam
1e1d21b716
[Transaction.hpp] rename to .hpp
2 years ago
Christopher Lam
ef8afedd09
[gnc-euro.cpp] use c++isms
2 years ago
Christopher Lam
3bc7ce606d
[gnc-euro.cpp] convert to c++
2 years ago
Christopher Lam
80997ee5b4
[gtest-gnc-euro] add rounding test
2 years ago
Christopher Lam
949c9c97c0
Bug 799300 - Nullpointer exception in gnc_quote_source_s
...
avoids constructing std::string with nullptr
2 years ago
Christopher Lam
87dbbf25f8
[account.cpp] add gnc_account_foreach_until_date
...
- uses binary search to find first split after date
- for_each from earliest split to (but excluding) the above first split
2 years ago
John Ralls
9c18bc889c
Don't use Googletest internal API for unused decls.
2 years ago
Bruce P Schuck
d01aad68fb
Update gnc-commodity.cpp
...
Fool.pm not working. Removed references to it from sources JSON structures.
2 years ago
Bruce Schuck
6696bf0a41
Updated QuoteSourceVec to match F::Q v1.59
2 years ago
Christopher Lam
0f791c474a
[Account.cpp][api] gnc_account_foreach_split takes std::function<void(Split*)>
2 years ago
Christopher Lam
871f669a19
[Account.cpp] explicitly destroy priv->splits
...
better than 35b6fb767d
2 years ago
Christopher Lam
35b6fb767d
[Account.cpp] ensure priv->splits releases memory on shutdown
2 years ago
Christopher Lam
94368f4cb4
[Account.cpp] SplitsVec&, ensure xaccAccountGetSplitList is freed
2 years ago