Commit Graph

20437 Commits

Author SHA1 Message Date
Christoph Holtermann
518a6f38b4 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_tree_model_owner_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_CODE
and G_ADD_PRIVATE. Replace g_type_add_interface_static by G_IMPLEMENT_INTERFACE.
2018-12-09 01:45:32 +01:00
Christoph Holtermann
a20c090ede use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_tree_view_account_get_type is being replaced by that
provided by G_DEFINE_TYPE_WITH_CODE and G_ADD_PRIVATE.
Replace g_type_add_interface_static by G_IMPLEMENT_INTERFACE.
2018-12-09 01:42:30 +01:00
Christoph Holtermann
3ba5e9ca21 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 22:54:10 +01:00
Christoph Holtermann
66638c3b3d use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_page_report_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 21:52:20 +01:00
Christoph Holtermann
97c1c71ad3 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_csv_import_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 21:51:52 +01:00
Christoph Holtermann
016f352944 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_csv_export_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 21:51:16 +01:00
Christoph Holtermann
3dd79e49bb use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_register2_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 21:50:39 +01:00
Christoph Holtermann
1a25350981 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_register_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 21:50:12 +01:00
Christoph Holtermann
f17d85dbd2 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_page_register_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 21:49:36 +01:00
Christoph Holtermann
73cedd8a4b use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_page_budget_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 21:49:00 +01:00
Christoph Holtermann
07b797b996 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_account_tree_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 21:48:22 +01:00
Christoph Holtermann
e487527879 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_stylesheets_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 21:10:41 +01:00
Christoph Holtermann
3f4513d3de use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_ofx_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 21:10:14 +01:00
Christoph Holtermann
6171a1d926 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_log_replay_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 21:09:48 +01:00
Christoph Holtermann
0ac300889a use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_search_double_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 20:50:01 +01:00
Christoph Holtermann
bd8a687bd6 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_search_date_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 20:50:01 +01:00
Christoph Holtermann
5b7d50f0c7 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_search_core_type_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 20:42:37 +01:00
Christoph Holtermann
9a1ff6462c use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_search_account_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 20:41:55 +01:00
Christoph Holtermann
5ed82e4760 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_search_string_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 20:19:07 +01:00
Christoph Holtermann
be8fc301ff use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_search_reconciled_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 20:18:31 +01:00
Christoph Holtermann
837b70ed33 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_search_boolean_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 20:17:53 +01:00
Christoph Holtermann
0c011e25b6 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_search_int64_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 19:57:33 +01:00
Christoph Holtermann
521eab5b8c use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_general_search_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 19:32:33 +01:00
Christoph Holtermann
7455412639 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_search_numeric_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 19:17:19 +01:00
Christoph Holtermann
990e7a05f5 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_page_invoice_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 18:53:41 +01:00
Christoph Holtermann
d523f0db7c use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_search_owner_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 18:53:10 +01:00
Christoph Holtermann
0c945797dd use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_qif_import_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 18:51:43 +01:00
Christoph Holtermann
cd886f0c17 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private 2018-12-06 18:51:25 +01:00
Christoph Holtermann
c674d33e41 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
and adapt name of private property to work with G_DEFINE_TYPE_WITH_PRIVATE
2018-12-06 18:50:58 +01:00
Christoph Holtermann
5e90b0e4a4 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
and adapt name of private property to work with G_DEFINE_TYPE_WITH_PRIVATE
2018-12-05 22:39:16 +01:00
Christoph Holtermann
1eb045070a use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
and adapt name of private property to work with G_DEFINE_TYPE_WITH_PRIVATE
2018-12-05 22:17:37 +01:00
Christoph Holtermann
8c62231711 directly use G_DEFINE_TYPE instead of QOF_GOBJECT_GET_TYPE 2018-12-05 22:17:28 +01:00
Christoph Holtermann
b7d005b485 directly use G_DEFINE_TYPE_WITH_PRIVATE instead of QOF_GOBJECT_GET_TYPE 2018-12-05 21:17:52 +01:00
Christoph Holtermann
54c9ef33ba replace deprecated g_type_class_add_private 2018-12-04 21:03:25 +01:00
John Ralls
519880545b Fix missing screen for GLib < 3.22. 2018-11-30 17:10:10 +09:00
John Ralls
5dcb44d991 Fix regex in CMakeLists.txt.
Apparently CMake doesn't handle backslashes well and \.
doesn't work in spite of its being an example in the documentation.
2018-11-30 16:40:35 +09:00
John Ralls
e434835f68 Remove special Apple compile flags, no longer required. 2018-11-30 16:23:30 +09:00
John Ralls
3f09e5c6f1 Only disable register warnings for SWIG 2.
SWIG 3 has removed the register storage class markers.
2018-11-30 16:11:42 +09:00
John Ralls
e81bcf6e33 Fix the remaining static analysis warnings.
Except two incorrect leak warnings and one about mktemp
 being insecure in the XML backend. See the respective
comments about those.
2018-11-30 15:08:41 +09:00
John Ralls
bf55c30aeb Fix most of the unused assignment errors from static analysis.
There are a very few left that need deeper study, but this gets
rid of most of the noise. For the most part it's just getting rid of
extra variables or removing an assignment that is always
replaced later but before any reads of the variable. A few are
discarded result variables.
2018-11-30 15:08:41 +09:00
John Ralls
a93448414f Fix another uninitialized variable in register.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
f52609961e Fix uninitialized variables (and one leak) in gnome.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
185787d7be Initialize some gnc_numerics that could be returned uninitialized.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
8ed9a9c43a Initialize some variables that could be otherwise used uninitialized.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
7e10b05c49 Avoid over-ranging string storage.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
7283c86f6f Fix various static analysis logic errors in gnome-utils. 2018-11-30 15:08:41 +09:00
John Ralls
876bfd19ad Protect against nullptr dereference, remove unused GError.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
24ce92056d Protect from potential nullptr dereferences.
pmtsched is created in only one banch of the opening switch.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
8f22c4bed4 Localize variables, ensure that val_imbalance is set, test txn_curr != commodity once.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
4ffeb3efac Ensure that a dereferenced variable isn't NULL.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00