Richard Cohen
9c6ad222a9
[-Wunused-function] - remove
3 years ago
Richard Cohen
d4dfe4e279
[-Wunused-local-typedef] - remove
...
libgnucash/engine/test/utest-Account.cpp:2414:11: warning: typedef ‘using AcctTypeType = struct std::underlying_type<GNCAccountType>’ locally defined but not used [-Wunused-local-typedefs]
2414 | using AcctTypeType = std::underlying_type<GNCAccountType>;
| ^~~~~~~~~~~~
3 years ago
Richard Cohen
78ec20515b
Remove some unused variables - and the initialization
...
- checked that any side effects were irrelevant
3 years ago
Richard Cohen
c819b03a17
Remove some unused variables - leave the side effect
3 years ago
Richard Cohen
ea2d3be217
Remove some unused variables with obviously no side effects
3 years ago
Geert Janssens
99506d331a
Reduce GncImportMatchMap to just the account
...
There is no added value in storing the book and account together
The book is easily retrieved from the account (as was
illustrated in the gnc_account_imap_new function).
I looked through the commit history to understand why this struct
was originally created and a long time ago it also had
a reference to a kvp frame.
3 years ago
John Ralls
f6919e60a7
Merge Richard Cohen's 'cleanup' into master.
3 years ago
Richard Cohen
6927535a0a
Remove unused test function get_object_is_initialized in qofobject.cpp
3 years ago
Richard Cohen
e83c91050c
Remove unneeded dummy.cpp
3 years ago
John Ralls
046e4a156e
Silence Clang deprecation warnings about sprintf.
3 years ago
Richard Cohen
1cec0cb3f3
Use internal extern "C" { ... } for C++
...
- removes warnings compiling swig engine
...
[ 10%] Generating swig-engine.cpp
.../libgnucash/engine/engine-helpers.h:31: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gnc-date.h:83: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/qofquery.h:90: Warning 302: Identifier 'QofQuery' redefined (ignored),
.../libgnucash/engine/gnc-option.hpp:55: Warning 302: previous definition of 'QofQuery'.
.../libgnucash/engine/gnc-commodity.h:56: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gncBusiness.h:40: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gncEntry.h:37: Warning 313: Unrecognized extern type "C++".
3 years ago
Richard Cohen
19bbde7000
Fix some typos
3 years ago
Christopher Lam
fd007a0af1
Merge branch 'maint'
3 years ago
Robert Fewell
6df866f876
Add tests for the reconcile account functions
3 years ago
John Ralls
fb9947b7b6
Rename GncDateTime's ymd to gnc_ymd to avoid a name conflict with Carbon.
3 years ago
Robert Fewell
3be25ff0a9
Add some tests for the account functions
3 years ago
Christopher Lam
bfc325f63c
Merge branch 'maint'
3 years ago
Christopher Lam
3d8a28898d
[gnc-budget] gnc_budget_get_account_period_note returns a const
...
to harmonize with all other char getters
3 years ago
Christopher Lam
3e5fcc8709
Merge branch 'maint'
3 years ago
Christopher Lam
6f80c548e6
[gtest-qofevent.cpp] comprehensive tests for qofevent
4 years ago
Christopher Lam
b87aa004f9
[test-qofbook] add tests for unknown features
...
tests that gnc_features_test_unknown returns a suitable error message
4 years ago
Christopher Lam
fc94b41c81
Merge branch 'maint'
4 years ago
Christopher Lam
4716af24e4
Merge branch 'maint'
4 years ago
Christopher Lam
f2354d6b2a
[test-qofbook.c] add test for gnc_features_set_unused
4 years ago
John Ralls
cf088f2a70
Merge John Ralls's 'Bug798614' into maint.
4 years ago
Christopher Lam
6f6d2fef48
[test-qofbook] basic features test
...
sets a feature and tests it's set. it's impossible to design a book
with unknown features using the API.
4 years ago
John Ralls
d8417c3cfa
Move gnc-euro.[ch] to engine and unit test it.
4 years ago
John Ralls
3949821da6
Merge branch 'maint'
4 years ago
John Ralls
2505955ab9
Fix test failure from Bug 798616 fix.
4 years ago
Christopher Lam
161b07b241
Merge branch 'maint'
4 years ago
luz paz
ba94730a23
Fix various typos
...
Found via `codespell`
4 years ago
John Ralls
95361ad060
[options] Move gnc-options test to engine/test/CMakeLists.txt.
4 years ago
John Ralls
4ae17d12c7
[options] Move options from app-utils to engine.
...
Options is required for book options that are stored as part of the data
file and so belongs in engine.
4 years ago
Christopher Lam
0b5a4cd298
Merge branch 'maint'
4 years ago
Christopher Lam
ec3e996f92
tests xaccTransGetTxnType heuristics
...
tests TXN_TYPE_NONE in utest-Transaction.c
testing TXN_TYPE_INVOICE, TXN_TYPE_PAYMENT, and TXN_TYPE_LINK will
require valid posted invoices, so, are best tested in utest-Invoice.c
4 years ago
Christopher Lam
fd12d3900c
[Transaction.c] use heuristics to determine txn->txn_type
4 years ago
John Ralls
3fd8bd9ddf
Merge branch 'maint'
4 years ago
John Ralls
9f6d495ca1
Fix use-after-free crash in utest-Invoice.
4 years ago
Christopher Lam
dc620d4b24
Merge branch 'maint'
4 years ago
Christopher Lam
e1d52963ed
[account.cpp] restore breadth-first search for 2 functions
...
gnc_account_lookup_by_name and gnc_account_lookup_by_code were
searching breadth-first and accidentally changed to depth-first in
4.7.
as reported in https://github.com/Gnucash/gnucash/pull/1101#issuecomment-1098146573
4 years ago
John Ralls
95487eb4a0
Merge branch 'maint'
...
# Conflicts:
# gnucash/gnome/window-reconcile2.c
# libgnucash/app-utils/options.scm
# libgnucash/engine/gnc-numeric.cpp
4 years ago
luz paz
8adedc2248
Fix various typos
...
Found via `codespell -q 3 -S *.po,./po,*.min.js,./ChangeLog*,./NEWS,./borrowed,./doc/README*,./AUTHORS,./libgnucash/tax/us/txf-de*,./data/accounts -L ans,ba,cas,dragable,gae,iff,iif,mut,nd,numer,parm,parms,startd,stoll`
4 years ago
John Ralls
abd1a0b3f1
Merge branch 'c++options'
4 years ago
Christopher Lam
bd4a457040
Merge branch 'maint-lightning-budget' into maint #1248
4 years ago
Christopher Lam
6c4c2512db
Use C++ STL instead of GLib
4 years ago
Christopher Lam
f0de54ac7a
Merge branch 'maint-798406' into maint #1240
4 years ago
Christopher Lam
ef8d812d3f
[utest-Budget] test data retention when modifying budget num_periods
4 years ago
Christopher Lam
87b0a41e9b
[Split.c] return price==0 instead of 1, if !split, or amt==0
4 years ago
John Ralls
cf5da9fffd
Resolve merge conflicts.
4 years ago
Christopher Lam
23e528f51a
[utest-gnc-pricedb] add tests for gnc_price_list_equal
...
Also need to change PWARN which causes test failure, to PINFO
5 years ago