Skip to content

Commit

Permalink
[app-utils/gnc-ui-balances.cpp] convert to cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Jan 26, 2024
1 parent c956aa1 commit 688032b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libgnucash/app-utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ set (app_utils_SOURCES
gnc-quotes.cpp
gnc-state.c
gnc-ui-util.cpp
gnc-ui-balances.c
gnc-ui-balances.cpp
)

set_source_files_properties (${app_utils_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ account_get_balance_as_of_date (Account *account,
gnc_commodity *child_currency;
gnc_numeric child_balance;

child = node->data;
child = static_cast<Account*>(node->data);
child_currency = xaccAccountGetCommodity (child);
child_balance = fn (child, date);
child_balance =
Expand Down
8 changes: 8 additions & 0 deletions libgnucash/app-utils/gnc-ui-balances.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
#include "gncOwner.h"
#include "qof.h"

#ifdef __cplusplus
extern "C" {
#endif

/********************************************************************
* Balance calculations related to accounts
********************************************************************/
Expand Down Expand Up @@ -197,4 +201,8 @@ gchar * gnc_ui_account_get_balance_limit_icon_name (const Account *account);
*/
gchar * gnc_ui_account_get_balance_limit_explanation (const Account *account);

#ifdef __cplusplus
}
#endif

#endif /* GNC_UI_BALANCES_H_ */
2 changes: 1 addition & 1 deletion po/POTFILES.in
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ libgnucash/app-utils/gnc-prefs-utils.c
libgnucash/app-utils/gnc-quotes.cpp
libgnucash/app-utils/gnc-state.c
libgnucash/app-utils/gnc-sx-instance-model.c
libgnucash/app-utils/gnc-ui-balances.c
libgnucash/app-utils/gnc-ui-balances.cpp
libgnucash/app-utils/gnc-ui-util.cpp
libgnucash/app-utils/QuickFill.c
libgnucash/backend/dbi/gnc-backend-dbi.cpp
Expand Down

0 comments on commit 688032b

Please sign in to comment.