From deec6809aabc4d1e16d425d313c7ef6d2872683f Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Thu, 10 Feb 2011 21:48:58 +0000 Subject: [PATCH] Minor code cleanup - remove includes from header if not necessary. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20270 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/app-utils/gnc-entry-quickfill.c | 8 ++++---- src/app-utils/gnc-entry-quickfill.h | 1 - src/gnome-utils/dialog-transfer.c | 1 + src/gnome-utils/dialog-transfer.h | 1 - 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/app-utils/gnc-entry-quickfill.c b/src/app-utils/gnc-entry-quickfill.c index 1725b855d4..5c91eb5c14 100644 --- a/src/app-utils/gnc-entry-quickfill.c +++ b/src/app-utils/gnc-entry-quickfill.c @@ -24,6 +24,7 @@ #include "config.h" #include "gnc-entry-quickfill.h" #include "engine/gnc-event.h" +#include "engine/gncEntry.h" /* This static indicates the debugging module that this .o belongs to. */ static QofLogModule log_module = GNC_MOD_REGISTER; @@ -156,12 +157,11 @@ QuickFill * gnc_get_shared_entry_desc_quickfill (QofBook *book, qfb = qof_book_get_data (book, key); - if (qfb) + if (!qfb) { - g_assert(use_invoices == qfb->using_invoices); - return qfb->qf; + qfb = build_shared_quickfill(book, key, use_invoices); } - qfb = build_shared_quickfill(book, key, use_invoices); + g_assert(use_invoices == qfb->using_invoices); return qfb->qf; } diff --git a/src/app-utils/gnc-entry-quickfill.h b/src/app-utils/gnc-entry-quickfill.h index 84c6ca5b75..5fb455295f 100644 --- a/src/app-utils/gnc-entry-quickfill.h +++ b/src/app-utils/gnc-entry-quickfill.h @@ -31,7 +31,6 @@ #define GNC_ENTRY_QUICKFILL_H #include "qof.h" -#include "engine/gncEntry.h" #include "app-utils/QuickFill.h" /** Create/fetch a quickfill GncEntry description strings. diff --git a/src/gnome-utils/dialog-transfer.c b/src/gnome-utils/dialog-transfer.c index 21d289a68d..7436d8b8b7 100644 --- a/src/gnome-utils/dialog-transfer.c +++ b/src/gnome-utils/dialog-transfer.c @@ -47,6 +47,7 @@ #include "swig-runtime.h" #include "guile-mappings.h" #include "engine-helpers.h" +#include "app-utils/QuickFill.h" #define DIALOG_TRANSFER_CM_CLASS "dialog-transfer" diff --git a/src/gnome-utils/dialog-transfer.h b/src/gnome-utils/dialog-transfer.h index 2faada8a77..b4c636be06 100644 --- a/src/gnome-utils/dialog-transfer.h +++ b/src/gnome-utils/dialog-transfer.h @@ -25,7 +25,6 @@ #define DIALOG_TRANSFER_H #include "Account.h" -#include "QuickFill.h" typedef struct _xferDialog XferDialog;