Skip to content

Commit

Permalink
Convert optiondb users in gnome and gnome-utils to C++.
Browse files Browse the repository at this point in the history
To enable using std::unique_ptr<GncObjectDB> and avoid memory management
problems.
  • Loading branch information
jralls committed Aug 1, 2021
1 parent ea835b3 commit e2c87f2
Show file tree
Hide file tree
Showing 24 changed files with 640 additions and 611 deletions.
2 changes: 1 addition & 1 deletion gnucash/gnome-utils/CMakeLists.txt
Expand Up @@ -74,7 +74,7 @@ set (gnome_utils_SOURCES
gnc-gui-query.c
gnc-icons.c
gnc-keyring.c
gnc-main-window.c
gnc-main-window.cpp
gnc-menu-extensions.c
gnc-plugin-file-history.c
gnc-plugin-manager.c
Expand Down
6 changes: 3 additions & 3 deletions gnucash/gnome-utils/dialog-options.h
Expand Up @@ -32,9 +32,9 @@ using GNCOptionDB = GncOptionDB;
extern "C"
{
#else
#include "option-util.h"
typedef GNCOption GncOption;
typedef GNCOptionDB GncOptionDB;
typedef struct GncOption GncOption;
typedef struct GncOptionDB GncOptionDB;
typedef GncOptionDB GNCOptionDB;
#endif
#include <guile-mappings.h>
#include <gtk/gtk.h>
Expand Down
1 change: 1 addition & 0 deletions gnucash/gnome-utils/gnc-icons.c
Expand Up @@ -33,6 +33,7 @@
#include "gnc-filepath-utils.h"
#include "gnc-gnome-utils.h"
#include "gnc-path.h"
#include <gnc-engine.h> // For define GNC_MOD_GUI

static QofLogModule log_module = GNC_MOD_GUI;

Expand Down

0 comments on commit e2c87f2

Please sign in to comment.