From 07b93dcf8084bcae92fa1f33652723ca9c990db2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 22 May 2014 10:10:16 +0200 Subject: InputStream: make Seek() always absolute Remove the "whence" parameter that is not actually necessary, and only complicates the InputStream implementations. --- test/test_rewind.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/test_rewind.cxx b/test/test_rewind.cxx index c429ee474..fa59b60d7 100644 --- a/test/test_rewind.cxx +++ b/test/test_rewind.cxx @@ -92,7 +92,7 @@ public: ris->GetOffset()); CPPUNIT_ASSERT(!ris->IsEOF()); - CPPUNIT_ASSERT(ris->Seek(1, SEEK_SET, error)); + CPPUNIT_ASSERT(ris->Seek(1, error)); CPPUNIT_ASSERT_EQUAL(InputStream::offset_type(1), ris->GetOffset()); CPPUNIT_ASSERT(!ris->IsEOF()); @@ -105,7 +105,7 @@ public: ris->GetOffset()); CPPUNIT_ASSERT(!ris->IsEOF()); - CPPUNIT_ASSERT(ris->Seek(0, SEEK_SET, error)); + CPPUNIT_ASSERT(ris->Seek(0, error)); CPPUNIT_ASSERT_EQUAL(InputStream::offset_type(0), ris->GetOffset()); CPPUNIT_ASSERT(!ris->IsEOF()); @@ -135,7 +135,7 @@ public: ris->GetOffset()); CPPUNIT_ASSERT(ris->IsEOF()); - CPPUNIT_ASSERT(ris->Seek(3, SEEK_SET, error)); + CPPUNIT_ASSERT(ris->Seek(3, error)); CPPUNIT_ASSERT_EQUAL(InputStream::offset_type(3), ris->GetOffset()); CPPUNIT_ASSERT(!ris->IsEOF()); -- cgit v1.2.3