Skip to content

Commit a5b1139

Browse files
committed
csv cursor
1 parent ced679b commit a5b1139

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/jsoncons_ext/csv/csv_cursor.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,9 @@ class basic_csv_cursor : public basic_staj_cursor<CharT>, private virtual ser_co
225225
void read_to(basic_json_visitor<CharT>& visitor,
226226
std::error_code& ec) override
227227
{
228-
basic_json_tee<char_type> tee(cursor_visitor_, visitor);
229228
if (cursor_visitor_.event().send_json_event(visitor, *this, ec))
230229
{
231-
read_next(tee, ec);
232-
//read_next(ec);
230+
read_next(visitor, ec);
233231
}
234232
}
235233

test/csv/src/csv_cursor_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ EUR_LIBOR_06M,2015-10-27,0.0000001
144144
REQUIRE(cursor.current().event_type() == staj_event_type::begin_object);
145145
cursor.read_to(decoder);
146146

147-
REQUIRE(cursor.current().event_type() == staj_event_type::end_object);
147+
REQUIRE(cursor.current().event_type() == staj_event_type::begin_object);
148148
cursor.next();
149149

150150
REQUIRE(cursor.current().event_type() == staj_event_type::begin_object);

0 commit comments

Comments
 (0)