summaryrefslogtreecommitdiff
path: root/project2/fileRows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/fileRows.cpp')
-rw-r--r--project2/fileRows.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/project2/fileRows.cpp b/project2/fileRows.cpp
index 58dde13..d7c8fca 100644
--- a/project2/fileRows.cpp
+++ b/project2/fileRows.cpp
@@ -29,17 +29,15 @@ FileRows::setFilter(const Glib::ustring &)
}
void
-FileRows::execute(const RowProcessor * rp) const
+FileRows::execute(const Glib::ustring &, const RowProcessor * rp) const
{
- rowNum = 1;
FileStarChannel c(doOpen());
c.set_encoding(encoding);
gunichar ch;
- begin();
+ ParseState ps(this, rp);
while (c.read(ch) == Glib::IO_STATUS_NORMAL) {
- this->pushChar(ch, rp);
+ this->pushChar(ch, ps);
}
- end(rp);
}
FileStarChannel