diff options
author | Max Kellermann <max@duempel.org> | 2014-05-22 10:10:16 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-05-22 13:52:00 +0200 |
commit | 07b93dcf8084bcae92fa1f33652723ca9c990db2 (patch) | |
tree | 5cfa3d13c14d68b70d54ade24169b84a7f614b8e /test | |
parent | 374c6a27db790eb637feaeb9bd27ed82897d7953 (diff) |
InputStream: make Seek() always absolute
Remove the "whence" parameter that is not actually necessary, and only
complicates the InputStream implementations.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_rewind.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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()); |