diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-02-12 06:33:09 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-02-12 06:33:09 +0000 |
commit | d66d62236b3354e26157efa91689d1a22ae3866d (patch) | |
tree | be168d183a56189d039fa3fbffc25d75fc1d0633 /src/tests | |
parent | d61161061bd5998ef4b1fc2aaad2cf4bbd78e90d (diff) | |
download | libbu++-d66d62236b3354e26157efa91689d1a22ae3866d.tar.gz libbu++-d66d62236b3354e26157efa91689d1a22ae3866d.tar.bz2 libbu++-d66d62236b3354e26157efa91689d1a22ae3866d.tar.xz libbu++-d66d62236b3354e26157efa91689d1a22ae3866d.zip |
Well, it compiles. I think I may make newline inherit from buffer, I dunno...
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/csv.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/csv.cpp b/src/tests/csv.cpp index 03e1df8..96db756 100644 --- a/src/tests/csv.cpp +++ b/src/tests/csv.cpp | |||
@@ -2,6 +2,7 @@ | |||
2 | #include "bu/file.h" | 2 | #include "bu/file.h" |
3 | #include "bu/newline.h" | 3 | #include "bu/newline.h" |
4 | #include "bu/csvreader.h" | 4 | #include "bu/csvreader.h" |
5 | #include "bu/buffer.h" | ||
5 | #include "bu/sio.h" | 6 | #include "bu/sio.h" |
6 | 7 | ||
7 | using namespace Bu; | 8 | using namespace Bu; |
@@ -23,7 +24,8 @@ public: | |||
23 | { | 24 | { |
24 | File fIn( aArgs[1], File::Read ); | 25 | File fIn( aArgs[1], File::Read ); |
25 | NewLine nlIn( fIn ); | 26 | NewLine nlIn( fIn ); |
26 | CsvReader rCsv( nlIn ); | 27 | Buffer bIn( nlIn ); |
28 | CsvReader rCsv( bIn ); | ||
27 | while( !fIn.isEos() ) | 29 | while( !fIn.isEos() ) |
28 | { | 30 | { |
29 | sio << rCsv.readLine() << sio.nl; | 31 | sio << rCsv.readLine() << sio.nl; |