Skip to content

Commit

Permalink
Remove extra semicolons
Browse files Browse the repository at this point in the history
Courtesy of gcc -pedantic
  • Loading branch information
richardcohen committed Jan 24, 2023
1 parent 046e4a1 commit 3360a6d
Show file tree
Hide file tree
Showing 31 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion gnucash/gnome/assistant-stock-transaction.cpp
Expand Up @@ -913,7 +913,7 @@ stock_assistant_prepare (GtkAssistant *assistant, GtkWidget *page,

switch (currentpage)
{
case PAGE_TRANSACTION_TYPE:;
case PAGE_TRANSACTION_TYPE:
// initialize transaction types.
gnc_numeric balance;
time64 date;
Expand Down
2 changes: 1 addition & 1 deletion gnucash/gnome/dialog-invoice.h
Expand Up @@ -76,7 +76,7 @@ void gnc_invoice_window_sort (InvoiceWindow *iw, invoice_sort_type_t sort_code);

GtkWidget * gnc_invoice_window_create_summary_bar (InvoiceWindow *iw);

void gnc_invoice_window_changed (InvoiceWindow *iw, GtkWidget *window);;
void gnc_invoice_window_changed (InvoiceWindow *iw, GtkWidget *window);

gchar *gnc_invoice_get_help (InvoiceWindow *iw);

Expand Down
2 changes: 1 addition & 1 deletion gnucash/gnome/search-owner.c
Expand Up @@ -57,7 +57,7 @@ typedef struct _GNCSearchOwnerPrivate
GtkWidget * owner_choice;
} GNCSearchOwnerPrivate;

G_DEFINE_TYPE_WITH_PRIVATE(GNCSearchOwner, gnc_search_owner, GNC_TYPE_SEARCH_CORE_TYPE);
G_DEFINE_TYPE_WITH_PRIVATE(GNCSearchOwner, gnc_search_owner, GNC_TYPE_SEARCH_CORE_TYPE)

#define _PRIVATE(o) \
((GNCSearchOwnerPrivate*)gnc_search_owner_get_instance_private((GNCSearchOwner*)o))
Expand Down
2 changes: 1 addition & 1 deletion gnucash/import-export/bi-import/gnc-plugin-bi-import.c
Expand Up @@ -69,7 +69,7 @@ static const gchar *gnc_plugin_load_ui_items [] =
* Object Implementation *
************************************************************/

G_DEFINE_TYPE(GncPluginbi_import, gnc_plugin_bi_import, GNC_TYPE_PLUGIN);
G_DEFINE_TYPE(GncPluginbi_import, gnc_plugin_bi_import, GNC_TYPE_PLUGIN)

GncPlugin *
gnc_plugin_bi_import_new (void)
Expand Down
Expand Up @@ -69,7 +69,7 @@ static const gchar *gnc_plugin_load_ui_items [] =
* Object Implementation *
************************************************************/

G_DEFINE_TYPE(GncPlugincustomer_import, gnc_plugin_customer_import, GNC_TYPE_PLUGIN);
G_DEFINE_TYPE(GncPlugincustomer_import, gnc_plugin_customer_import, GNC_TYPE_PLUGIN)

GncPlugin *
gnc_plugin_customer_import_new (void)
Expand Down
2 changes: 1 addition & 1 deletion gnucash/import-export/import-commodity-matcher.c
Expand Up @@ -140,5 +140,5 @@ gnc_commodity * gnc_import_select_commodity(const char * cusip,
gnc_commodity_set_cusip(retval, cusip);
}
return retval;
};
}
/**@}*/
16 changes: 8 additions & 8 deletions gnucash/import-export/import-settings.c
Expand Up @@ -123,49 +123,49 @@ gnc_import_Settings_get_fuzzy_amount (GNCImportSettings *settings)
{
g_assert (settings);
return settings->fuzzy_amount;
};
}

gboolean gnc_import_Settings_get_action_skip_enabled (GNCImportSettings *settings)
{
g_assert (settings);
return settings->action_skip_enabled;
};
}

gboolean gnc_import_Settings_get_action_add_enabled (GNCImportSettings *settings)
{
g_assert (settings);
return settings->action_add_enabled;
};
}

gboolean gnc_import_Settings_get_action_update_enabled (GNCImportSettings *settings)
{
g_assert (settings);
return settings->action_update_enabled;
};
}

gboolean gnc_import_Settings_get_action_clear_enabled (GNCImportSettings *settings)
{
g_assert (settings);
return settings->action_clear_enabled;
};
}

gint gnc_import_Settings_get_clear_threshold (GNCImportSettings *settings)
{
g_assert (settings);
return settings->clear_threshold;
};
}

gint gnc_import_Settings_get_add_threshold (GNCImportSettings *settings)
{
g_assert (settings);
return settings->add_threshold;
};
}

gint gnc_import_Settings_get_display_threshold (GNCImportSettings *settings)
{
g_assert (settings);
return settings->display_threshold;
};
}

gint gnc_import_Settings_get_date_threshold (GNCImportSettings *settings)
{
Expand Down
2 changes: 1 addition & 1 deletion gnucash/import-export/qif-imp/gnc-plugin-qif-import.c
Expand Up @@ -61,7 +61,7 @@ typedef struct GncPluginQifImportPrivate
gpointer dummy;
} GncPluginQifImportPrivate;

G_DEFINE_TYPE_WITH_PRIVATE(GncPluginQifImport, gnc_plugin_qif_import, GNC_TYPE_PLUGIN);
G_DEFINE_TYPE_WITH_PRIVATE(GncPluginQifImport, gnc_plugin_qif_import, GNC_TYPE_PLUGIN)

#define GNC_PLUGIN_QIF_IMPORT_GET_PRIVATE(o) \
((GncPluginQifImportPrivate*)gnc_plugin_qif_import_get_instance_private((GncPluginQifImport*)o))
Expand Down
36 changes: 18 additions & 18 deletions gnucash/register/ledger-core/split-register-copy-ops.c
Expand Up @@ -86,57 +86,57 @@ void gnc_float_split_set_split(FloatingSplit *fs, Split *split)
{
g_return_if_fail (fs);
fs->m_split = split;
};
}

void gnc_float_split_set_account (FloatingSplit *fs, Account *account) /* direct account pointer rather than account guid */
{
g_return_if_fail (fs);
fs->m_account = account;
};
}

void gnc_float_split_set_transaction (FloatingSplit *fs, Transaction *transaction) /* direct transaction pointer rather than transaction guid */
{
g_return_if_fail (fs);
fs->m_transaction = transaction;
};
}

void gnc_float_split_set_memo (FloatingSplit *fs, const char *memo)
{
g_return_if_fail (fs);
CACHE_REPLACE (fs->m_memo, memo);
};
}

void gnc_float_split_set_action (FloatingSplit *fs, const char *action)
{
g_return_if_fail (fs);
CACHE_REPLACE (fs->m_action, action);
};
}

void gnc_float_split_set_reconcile_state (FloatingSplit *fs, char reconcile_state)
{
g_return_if_fail (fs);
fs->m_reconcile_state = reconcile_state;
};
}

void gnc_float_split_set_reconcile_date (FloatingSplit *fs, time64 reconcile_date)
{
g_return_if_fail (fs);
fs->m_reconcile_date = reconcile_date;
};
}

void gnc_float_split_set_amount (FloatingSplit *fs, const gnc_numeric amount)
{
g_return_if_fail (fs);

fs->m_amount = amount;
};
}

void gnc_float_split_set_value (FloatingSplit *fs, const gnc_numeric value)
{
g_return_if_fail (fs);

fs->m_value = value;
};
}

/* This function takes a split and returns a representation
of it as a floating_split structure. Assumes the transaction is open
Expand Down Expand Up @@ -280,55 +280,55 @@ void gnc_float_txn_set_txn (FloatingTxn *ft, Transaction *txn)
{
g_return_if_fail (ft);
ft->m_txn = txn;
};
}

void gnc_float_txn_set_currency (FloatingTxn *ft, gnc_commodity *currency)
{
g_return_if_fail (ft);
ft->m_currency = currency;
};
}

void gnc_float_txn_set_date_entered (FloatingTxn *ft, time64 date_entered)
{
g_return_if_fail (ft);
ft->m_date_entered = date_entered;
};
}

void gnc_float_txn_set_date_posted (FloatingTxn *ft, time64 date_posted)
{
g_return_if_fail (ft);
ft->m_date_posted = date_posted;
};
}

void gnc_float_txn_set_num (FloatingTxn *ft, const char *num)
{
g_return_if_fail (ft);
CACHE_REPLACE (ft->m_num, num);
};
}

void gnc_float_txn_set_description (FloatingTxn *ft, const char *description)
{
g_return_if_fail (ft);
CACHE_REPLACE (ft->m_description, description);
};
}

void gnc_float_txn_set_notes (FloatingTxn *ft, const char *notes)
{
g_return_if_fail (ft);
CACHE_REPLACE (ft->m_notes, notes);
};
}

void gnc_float_txn_set_doclink (FloatingTxn *ft, const char *doclink)
{
g_return_if_fail (ft);
CACHE_REPLACE (ft->m_doclink, doclink);
};
}

void gnc_float_txn_set_splits (FloatingTxn *ft, SplitList *splits)
{
g_return_if_fail (ft);
ft->m_splits = splits;
};
}

void gnc_float_txn_append_float_split (FloatingTxn *ft, FloatingSplit *fs)
{
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/SX-book.c
Expand Up @@ -232,7 +232,7 @@ gnc_sxes_del_sx(SchedXactions *sxes, SchedXaction *sx)
/* SX-trans stuff */

/* GObject initialization */
QOF_GOBJECT_IMPL(gnc_schedxactions, SchedXactions, QOF_TYPE_INSTANCE);
QOF_GOBJECT_IMPL(gnc_schedxactions, SchedXactions, QOF_TYPE_INSTANCE)

static void
gnc_schedxactions_init(SchedXactions* sxs)
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/SchedXaction.c
Expand Up @@ -61,7 +61,7 @@ enum
};

/* GObject initialization */
G_DEFINE_TYPE(SchedXaction, gnc_schedxaction, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(SchedXaction, gnc_schedxaction, QOF_TYPE_INSTANCE)

static void
gnc_schedxaction_init(SchedXaction* sx)
Expand Down
4 changes: 2 additions & 2 deletions libgnucash/engine/gnc-commodity.c
Expand Up @@ -654,7 +654,7 @@ reset_unique_name(gnc_commodityPrivate *priv)
}

/* GObject Initialization */
G_DEFINE_TYPE_WITH_PRIVATE(gnc_commodity, gnc_commodity, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE_WITH_PRIVATE(gnc_commodity, gnc_commodity, QOF_TYPE_INSTANCE)

static void
gnc_commodity_init(gnc_commodity* com)
Expand Down Expand Up @@ -2306,7 +2306,7 @@ gnc_commodity_table_get_quotable_commodities(const gnc_commodity_table * table)
********************************************************************/

/* GObject Initialization */
QOF_GOBJECT_IMPL(gnc_commodity_namespace, gnc_commodity_namespace, QOF_TYPE_INSTANCE);
QOF_GOBJECT_IMPL(gnc_commodity_namespace, gnc_commodity_namespace, QOF_TYPE_INSTANCE)

static void
gnc_commodity_namespace_init(gnc_commodity_namespace* ns)
Expand Down
4 changes: 2 additions & 2 deletions libgnucash/engine/gnc-pricedb.c
Expand Up @@ -96,7 +96,7 @@ hash_entry_free_gfunc(gpointer data, G_GNUC_UNUSED gpointer user_data)
}

/* GObject Initialization */
G_DEFINE_TYPE(GNCPrice, gnc_price, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(GNCPrice, gnc_price, QOF_TYPE_INSTANCE)

static void
gnc_price_init(GNCPrice* price)
Expand Down Expand Up @@ -835,7 +835,7 @@ gnc_price_list_equal(PriceList *prices1, PriceList *prices2)
*/

/* GObject Initialization */
QOF_GOBJECT_IMPL(gnc_pricedb, GNCPriceDB, QOF_TYPE_INSTANCE);
QOF_GOBJECT_IMPL(gnc_pricedb, GNCPriceDB, QOF_TYPE_INSTANCE)

static void
gnc_pricedb_init(GNCPriceDB* pdb)
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/gncAddress.c
Expand Up @@ -86,7 +86,7 @@ enum
};

/* GObject Initialization */
G_DEFINE_TYPE(GncAddress, gnc_address, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(GncAddress, gnc_address, QOF_TYPE_INSTANCE)

static void
gnc_address_init(GncAddress* addr)
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/gncBillTerm.c
Expand Up @@ -137,7 +137,7 @@ enum
};

/* GObject Initialization */
G_DEFINE_TYPE(GncBillTerm, gnc_billterm, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(GncBillTerm, gnc_billterm, QOF_TYPE_INSTANCE)

static void
gnc_billterm_init(GncBillTerm* bt)
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/gncCustomer.c
Expand Up @@ -103,7 +103,7 @@ enum
};

/* GObject Initialization */
G_DEFINE_TYPE(GncCustomer, gnc_customer, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(GncCustomer, gnc_customer, QOF_TYPE_INSTANCE)

static void
gnc_customer_init(GncCustomer* cust)
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/gncEmployee.c
Expand Up @@ -99,7 +99,7 @@ enum
};

/* GObject Initialization */
G_DEFINE_TYPE(GncEmployee, gnc_employee, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(GncEmployee, gnc_employee, QOF_TYPE_INSTANCE)

static void
gnc_employee_init(GncEmployee* emp)
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/gncEntry.c
Expand Up @@ -238,7 +238,7 @@ enum
};

/* GObject Initialization */
G_DEFINE_TYPE(GncEntry, gnc_entry, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(GncEntry, gnc_entry, QOF_TYPE_INSTANCE)

static void
gnc_entry_init(GncEntry* entry)
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/gncInvoice.c
Expand Up @@ -132,7 +132,7 @@ enum
};

/* GObject Initialization */
G_DEFINE_TYPE(GncInvoice, gnc_invoice, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(GncInvoice, gnc_invoice, QOF_TYPE_INSTANCE)

static void
gnc_invoice_init (GncInvoice* inv)
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/gncJob.c
Expand Up @@ -83,7 +83,7 @@ enum
};

/* GObject Initialization */
G_DEFINE_TYPE(GncJob, gnc_job, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(GncJob, gnc_job, QOF_TYPE_INSTANCE)

static void
gnc_job_init(GncJob* job)
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/gncOrder.c
Expand Up @@ -93,7 +93,7 @@ enum
};

/* GObject Initialization */
G_DEFINE_TYPE(GncOrder, gnc_order, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(GncOrder, gnc_order, QOF_TYPE_INSTANCE)

static void
gnc_order_init(GncOrder* order)
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/gncTaxTable.c
Expand Up @@ -212,7 +212,7 @@ enum
};

/* GObject Initialization */
G_DEFINE_TYPE(GncTaxTable, gnc_taxtable, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(GncTaxTable, gnc_taxtable, QOF_TYPE_INSTANCE)

static void
gnc_taxtable_init(GncTaxTable* tt)
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/gncVendor.c
Expand Up @@ -107,7 +107,7 @@ enum
};

/* GObject Initialization */
G_DEFINE_TYPE(GncVendor, gnc_vendor, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(GncVendor, gnc_vendor, QOF_TYPE_INSTANCE)

static void
gnc_vendor_init(GncVendor* vendor)
Expand Down

0 comments on commit 3360a6d

Please sign in to comment.