diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-05 10:41:04 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-02-12 15:31:40 +0000 |
commit | 15535e32ddcfee451d4dbc9be9de0b8c9f9d78d4 (patch) | |
tree | db4badc477cea1ecd51f5fab82ce0f24ae20f155 /tools/qa/cppunit/test_stream.cxx | |
parent | 7accbd8c0d7f1d0b87748f0de599c4d8b469a61e (diff) |
convert SvStream::operator>> methods to ReadXXX methods
First, I updated the clang rewriter to do the conversion.
Then I lightly hand-tweaked the output for the few places where
the rewriter messed up, mostly when dealing with calls on "this".
Change-Id: I40a6a977959cd97415c678eafc8507de8aa3b1a9
Reviewed-on: https://gerrit.libreoffice.org/7879
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'tools/qa/cppunit/test_stream.cxx')
-rw-r--r-- | tools/qa/cppunit/test_stream.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/qa/cppunit/test_stream.cxx b/tools/qa/cppunit/test_stream.cxx index 677e698de23d..8389bcc1fb33 100644 --- a/tools/qa/cppunit/test_stream.cxx +++ b/tools/qa/cppunit/test_stream.cxx @@ -49,7 +49,7 @@ namespace CPPUNIT_ASSERT(std_a == 'f'); char tools_a(78); - aMemStream >> tools_a; + aMemStream.ReadChar( tools_a ); CPPUNIT_ASSERT(tools_a == 'f'); iss.seekg(0, std::ios_base::end); @@ -75,7 +75,7 @@ namespace CPPUNIT_ASSERT(iss.rdstate() == (std::ios::failbit|std::ios::eofbit)); tools_a = 78; - aMemStream >> tools_a; + aMemStream.ReadChar( tools_a ); //so, now eof is set CPPUNIT_ASSERT(aMemStream.eof()); //a failed read doesn't change the data, it remains unchanged @@ -92,7 +92,7 @@ namespace aMemStream.SeekRel(-1); CPPUNIT_ASSERT(!aMemStream.eof()); CPPUNIT_ASSERT(aMemStream.good()); - aMemStream >> tools_b; + aMemStream.ReadUInt16( tools_b ); CPPUNIT_ASSERT(!aMemStream.good()); CPPUNIT_ASSERT(aMemStream.eof()); CPPUNIT_ASSERT(tools_b == 0x1122); @@ -105,7 +105,7 @@ namespace aMemStream.Seek(0); CPPUNIT_ASSERT(aMemStream.good()); - aMemStream >> tools_a; + aMemStream.ReadChar( tools_a ); CPPUNIT_ASSERT(tools_a == 'f'); //failbit is rather subtle wrt e.g seeks |