From f387c120f7efd86d8f2973d022febcb2a8230350 Mon Sep 17 00:00:00 2001 From: Christian Henning Date: Fri, 22 Feb 2013 02:29:12 +0000 Subject: [PATCH] changes to scanline_read_iterator. [SVN r83076] --- io/test/scanline_read_test.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/io/test/scanline_read_test.hpp b/io/test/scanline_read_test.hpp index 21afee6bd..1881c540a 100644 --- a/io/test/scanline_read_test.hpp +++ b/io/test/scanline_read_test.hpp @@ -22,12 +22,11 @@ void test_scanline_reader( const char* file_name ) reader_t reader = make_scanline_reader( file_name, FormatTag() ); Image dst( reader._info._width, reader._info._height ); - vector< byte_t > buffer( reader._scanline_length ); - typedef scanline_read_iterator< reader_t > iterator_t; + typedef reader_t::iterator_t iterator_t; - iterator_t it = iterator_t( reader, &buffer.front() ); - iterator_t end = iterator_t(); + iterator_t it = reader.begin(); + iterator_t end = reader.end(); for( int row = 0; it != end; ++it, ++row ) {