[glom/import_csv_refactored] Import: Changed the signature of line_scanned handler
- From: Michael Hasselmann <mikhas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glom/import_csv_refactored] Import: Changed the signature of line_scanned handler
- Date: Fri, 25 Sep 2009 11:54:54 +0000 (UTC)
commit d7e44b0f71b29986e35639420e67b3ae5fb10f0a
Author: Michael Hasselmann <michaelh openismus com>
Date: Fri Sep 25 13:47:13 2009 +0200
Import: Changed the signature of line_scanned handler
* glom/import_csv/dialog_import_csv.[h|cc]: Changed the signare of
on_parser_line_scanned, to use CsvParser::type_row_strings. It does not
change anything, as the handler didn't even use the parameters.
glom/import_csv/dialog_import_csv.cc | 2 +-
glom/import_csv/dialog_import_csv.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glom/import_csv/dialog_import_csv.cc b/glom/import_csv/dialog_import_csv.cc
index c00d118..04ce580 100644
--- a/glom/import_csv/dialog_import_csv.cc
+++ b/glom/import_csv/dialog_import_csv.cc
@@ -466,7 +466,7 @@ void Dialog_Import_CSV::on_parser_encoding_error()
/*
* No, this is wrong. Creating the tree model and handling a line from the CSV file are two separate steps. Proposal: Construct tree model *after* parsing, using row[0].
*/
-void Dialog_Import_CSV::on_parser_line_scanned(const Glib::ustring& /*line*/, guint row_number)
+void Dialog_Import_CSV::on_parser_line_scanned(CsvParser::type_row_strings /*row*/, unsigned int row_number)
{
// This is the first line read if there is no model yet:
if(!m_sample_model)
diff --git a/glom/import_csv/dialog_import_csv.h b/glom/import_csv/dialog_import_csv.h
index 5a1856a..a2e8bc8 100644
--- a/glom/import_csv/dialog_import_csv.h
+++ b/glom/import_csv/dialog_import_csv.h
@@ -86,7 +86,7 @@ private:
void on_parser_file_read_error(const Glib::ustring& error_message);
void on_parser_have_display_name(const Glib::ustring& display_name);
void on_parser_encoding_error();
- void on_parser_line_scanned(const Glib::ustring& line, unsigned int row_number);
+ void on_parser_line_scanned(CsvParser::type_row_strings row, unsigned int row_number);
void on_parser_state_changed();
void on_combo_encoding_changed();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]