Remove extra semicolons

Courtesy of gcc -pedantic
This commit is contained in:
Richard Cohen 2023-01-24 13:22:18 +00:00
parent 046e4a156e
commit 3360a6d13b
31 changed files with 61 additions and 61 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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))

View File

@ -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)

View File

@ -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)

View File

@ -140,5 +140,5 @@ gnc_commodity * gnc_import_select_commodity(const char * cusip,
gnc_commodity_set_cusip(retval, cusip);
}
return retval;
};
}
/**@}*/

View File

@ -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)
{

View File

@ -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))

View File

@ -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
@ -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)
{

View File

@ -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)

View File

@ -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)

View File

@ -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)
@ -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)

View File

@ -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)
@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -9,7 +9,7 @@ struct _MockAccountClass
};
typedef struct _MockAccountClass MockAccountClass;
G_DEFINE_TYPE(MockAccount, gnc_mockaccount, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(MockAccount, gnc_mockaccount, QOF_TYPE_INSTANCE)
static void
gnc_mockaccount_init (MockAccount *inst)

View File

@ -13,7 +13,7 @@ struct _MockSplitClass
};
typedef struct _MockSplitClass MockSplitClass;
G_DEFINE_TYPE(MockSplit, gnc_mocksplit, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(MockSplit, gnc_mocksplit, QOF_TYPE_INSTANCE)
static void
gnc_mocksplit_init (MockSplit *inst)

View File

@ -11,7 +11,7 @@ struct _MockTransactionClass
};
typedef struct _MockTransactionClass MockTransactionClass;
G_DEFINE_TYPE(MockTransaction, gnc_mocktransaction, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(MockTransaction, gnc_mocktransaction, QOF_TYPE_INSTANCE)
static void
gnc_mocktransaction_init (MockTransaction *inst)

View File

@ -6,7 +6,7 @@ struct _QofMockBookClass
};
typedef struct _QofMockBookClass QofMockBookClass;
G_DEFINE_TYPE(QofMockBook, qof_mockbook, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(QofMockBook, qof_mockbook, QOF_TYPE_INSTANCE)
static void
qof_mockbook_init (QofMockBook *inst)

View File

@ -6,7 +6,7 @@
#include <qofinstance-p.h>
G_DEFINE_TYPE(QofInstance, qof_instance, G_TYPE_OBJECT);
G_DEFINE_TYPE(QofInstance, qof_instance, G_TYPE_OBJECT)
static void
qof_instance_init (QofInstance *inst)

View File

@ -57,7 +57,7 @@
*/
#define QOF_GOBJECT_GET_TYPE(TypeName, type_name, TYPE_PARENT, CODE) \
G_DEFINE_TYPE_WITH_CODE(TypeName, type_name, TYPE_PARENT, CODE);
G_DEFINE_TYPE_WITH_CODE(TypeName, type_name, TYPE_PARENT, CODE)
#define QOF_GOBJECT_CLASS_INIT(type_name, TypeName) \
static void type_name##_dispose(GObject *object); \
@ -86,10 +86,10 @@
}
#define QOF_GOBJECT_IMPL_WITH_CODE(type_name, TypeName, TYPE_PARENT, CODE) \
QOF_GOBJECT_GET_TYPE(TypeName, type_name, TYPE_PARENT, CODE); \
QOF_GOBJECT_CLASS_INIT(type_name, TypeName); \
QOF_GOBJECT_DISPOSE(type_name); \
QOF_GOBJECT_FINALIZE(type_name);
QOF_GOBJECT_GET_TYPE(TypeName, type_name, TYPE_PARENT, CODE) \
QOF_GOBJECT_CLASS_INIT(type_name, TypeName) \
QOF_GOBJECT_DISPOSE(type_name) \
QOF_GOBJECT_FINALIZE(type_name)
#define QOF_GOBJECT_IMPL(type_name, TypeName, TYPE_PARENT) \
QOF_GOBJECT_IMPL_WITH_CODE(type_name, TypeName, TYPE_PARENT, {})

View File

@ -89,7 +89,7 @@ qof_book_option_num_autoreadonly_changed_cb (GObject *gobject,
#define PARAM_NAME_NUM_FIELD_SOURCE "split-action-num-field"
#define PARAM_NAME_NUM_AUTOREAD_ONLY "autoreadonly-days"
G_DEFINE_TYPE(QofBook, qof_book, QOF_TYPE_INSTANCE);
G_DEFINE_TYPE(QofBook, qof_book, QOF_TYPE_INSTANCE)
QOF_GOBJECT_DISPOSE(qof_book);
QOF_GOBJECT_FINALIZE(qof_book);

View File

@ -111,7 +111,7 @@ typedef struct QofInstancePrivate
#define GET_PRIVATE(o) \
((QofInstancePrivate*)qof_instance_get_instance_private((QofInstance*)o))
G_DEFINE_TYPE_WITH_PRIVATE(QofInstance, qof_instance, G_TYPE_OBJECT);
G_DEFINE_TYPE_WITH_PRIVATE(QofInstance, qof_instance, G_TYPE_OBJECT)
QOF_GOBJECT_FINALIZE(qof_instance);
#undef G_PARAM_READWRITE
#define G_PARAM_READWRITE static_cast<GParamFlags>(G_PARAM_READABLE | G_PARAM_WRITABLE)