diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-18 09:36:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-18 10:39:16 +0200 |
commit | c88165dfb46c771eba6324ec061bf4455732194e (patch) | |
tree | 9ccfedfe01f381cbb67d01782856bbf12a67637b /vcl/source/fontsubset/cff.cxx | |
parent | 1452fb6332d64b7c980c50a7050403c99b7f47c8 (diff) |
loplugin: unused return values in vcl/
Change-Id: I879bd3bec4dd2cf002681f1e50b6c33cce0934a9
Diffstat (limited to 'vcl/source/fontsubset/cff.cxx')
-rw-r--r-- | vcl/source/fontsubset/cff.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx index 3a46f474e00b..7370733883f7 100644 --- a/vcl/source/fontsubset/cff.cxx +++ b/vcl/source/fontsubset/cff.cxx @@ -1716,7 +1716,7 @@ public: void emitAllHex(); void emitAllCrypted(); int tellPos() const; - size_t updateLen( int nTellPos, size_t nLength); + void updateLen( int nTellPos, size_t nLength); void emitValVector( const char* pLineHead, const char* pLineTail, const ValVector&); private: FILE* mpFileOut; @@ -1765,7 +1765,7 @@ int Type1Emitter::tellPos() const return nTellPos; } -size_t Type1Emitter::updateLen( int nTellPos, size_t nLength) +void Type1Emitter::updateLen( int nTellPos, size_t nLength) { // update PFB segment header length U8 cData[4]; @@ -1775,13 +1775,12 @@ size_t Type1Emitter::updateLen( int nTellPos, size_t nLength) cData[3] = static_cast<U8>(nLength >> 24); const long nCurrPos = ftell(mpFileOut); if (nCurrPos < 0) - return 0; + return; if (fseek( mpFileOut, nTellPos, SEEK_SET) != 0) - return 0; - size_t nWrote = fwrite(cData, 1, sizeof(cData), mpFileOut); + return; + fwrite(cData, 1, sizeof(cData), mpFileOut); if( nCurrPos >= 0) (void)fseek(mpFileOut, nCurrPos, SEEK_SET); - return nWrote; } inline size_t Type1Emitter::emitRawData(const char* pData, size_t nLength) const |