summaryrefslogtreecommitdiff
path: root/project2/fileRows.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-08-09 19:46:16 +0000
committerrandomdan <randomdan@localhost>2011-08-09 19:46:16 +0000
commitd1132f0e4b4952fc9718d748e33aa43a6f0fb67f (patch)
treeecddb09d16b94fcfaa14bc8f41e9db7dbfbe053d /project2/fileRows.cpp
parentRemove the long since pointless complication of RowUsers and variable value c... (diff)
downloadproject2-d1132f0e4b4952fc9718d748e33aa43a6f0fb67f.tar.bz2
project2-d1132f0e4b4952fc9718d748e33aa43a6f0fb67f.tar.xz
project2-d1132f0e4b4952fc9718d748e33aa43a6f0fb67f.zip
Strip out some dead wood
Fix a few small things But many fix the big idiot problem with storing state in the rowset instance
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