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 /linguistic | |
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 'linguistic')
-rw-r--r-- | linguistic/source/dicimp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index 2e83a06ad66c..0afa14d1eadd 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -145,7 +145,7 @@ sal_Int16 ReadDicVersion( SvStreamPtr &rpStream, sal_uInt16 &nLng, sal_Bool &bNe rpStream->Seek (nSniffPos ); - *rpStream >> nLen; + rpStream->ReadUInt16( nLen ); if (nLen >= MAX_HEADER_LENGTH) return -1; @@ -167,14 +167,14 @@ sal_Int16 ReadDicVersion( SvStreamPtr &rpStream, sal_uInt16 &nLng, sal_Bool &bNe DIC_VERSION_6 == nDicVersion) { // The language of the dictionary - *rpStream >> nLng; + rpStream->ReadUInt16( nLng ); if (VERS2_NOLANGUAGE == nLng) nLng = LANGUAGE_NONE; // Negative Flag sal_Char nTmp; - *rpStream >> nTmp; + rpStream->ReadChar( nTmp ); bNeg = (sal_Bool)nTmp; } } @@ -300,7 +300,7 @@ sal_uLong DictionaryNeo::loadEntries(const OUString &rMainURL) // Read the first word if (!pStream->IsEof()) { - *pStream >> nLen; + pStream->ReadUInt16( nLen ); if (0 != (nErr = pStream->GetError())) return nErr; if ( nLen < BUFSIZE ) @@ -326,7 +326,7 @@ sal_uLong DictionaryNeo::loadEntries(const OUString &rMainURL) addEntry_Impl( xEntry , sal_True ); //! don't launch events here } - *pStream >> nLen; + pStream->ReadUInt16( nLen ); if (pStream->IsEof()) break; if (0 != (nErr = pStream->GetError())) |