summaryrefslogtreecommitdiff
path: root/project2/fileRows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/fileRows.cpp')
-rw-r--r--project2/fileRows.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/project2/fileRows.cpp b/project2/fileRows.cpp
index 855136f..955767c 100644
--- a/project2/fileRows.cpp
+++ b/project2/fileRows.cpp
@@ -3,8 +3,8 @@
_FileRows::_FileRows(const xmlpp::Element * p) :
path(p->get_attribute_value("path")),
- fieldSep(p->get_attribute_value("fieldSeps")[0]),
- quoteChar(p->get_attribute_value("quoteChars")[0]),
+ fieldSep(p->get_attribute_value("fieldSep")[0]),
+ quoteChar(p->get_attribute_value("quoteChar")[0]),
newline(p->get_attribute_value("newline")),
encoding(p->get_attribute_value("encoding"))
{
@@ -83,7 +83,7 @@ _FileRows::execute() const
}
}
if (!mkCols) {
- while (curCol != columns.end()) {
+ while (values.size() < columns.size()) {
values.push_back(ValPtr(new Glib::ustring()));
curCol++;
}