diff --git a/gnucash/import-export/csv-imp/test/test-tokenizer.cpp b/gnucash/import-export/csv-imp/test/test-tokenizer.cpp index aad18520e0..161f3fd0c4 100644 --- a/gnucash/import-export/csv-imp/test/test-tokenizer.cpp +++ b/gnucash/import-export/csv-imp/test/test-tokenizer.cpp @@ -36,20 +36,20 @@ #include /* getenv */ -typedef struct +struct tokenize_csv_test_data { const char *csv_line; uint num_fields; const char *fields [8]; -} tokenize_csv_test_data; +}; -typedef struct +struct tokenize_fw_test_data { const char *fw_line; uint num_fields; uint field_widths[8]; const char *fields [8]; -} tokenize_fw_test_data; +}; class GncTokenizerTest : public ::testing::Test { @@ -68,7 +68,7 @@ protected: void set_utf8_contents(std::unique_ptr &tokenizer, const std::string& newcontents) { tokenizer->m_utf8_contents = newcontents; } void test_gnc_tokenize_helper (const std::string& separators, tokenize_csv_test_data* test_data); // for csv tokenizer - void test_gnc_tokenize_helper (tokenize_fw_test_data* test_data); // for csv tokenizer + void test_gnc_tokenize_helper (tokenize_fw_test_data* test_data); // for fw tokenizer std::unique_ptr fw_tok; std::unique_ptr csv_tok; diff --git a/gnucash/import-export/csv-imp/test/test-tx-import.cpp b/gnucash/import-export/csv-imp/test/test-tx-import.cpp index e9a559aa17..41cedc6b2f 100644 --- a/gnucash/import-export/csv-imp/test/test-tx-import.cpp +++ b/gnucash/import-export/csv-imp/test/test-tx-import.cpp @@ -41,14 +41,14 @@ // GncTxImport* parse_data; //} Fixture; -typedef struct +struct parse_date_data { int date_fmt; const gchar *date_str; int exp_year; int exp_month; int exp_day; -} parse_date_data; +}; class GncTxImportTest : public ::testing::Test {