diff options
author | David Tardon <dtardon@redhat.com> | 2014-06-03 10:11:53 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-06-03 10:14:44 +0200 |
commit | f20b6d26f728d863f62b61af251e160499972953 (patch) | |
tree | a91cd06254534cfd6e7e0e48f85b80d26093a750 /writerperfect | |
parent | c5b6eb836fdcc273a50ec4fc997eec61c8b79091 (diff) |
drop useless const_cast
Change-Id: Ie5e6f519a511931b383b6131a4a188abb3396946
(cherry picked from commit d3ddcbaeef9648cff78069b8ed443d7d3d611546)
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/common/WPXSvInputStream.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/writerperfect/source/common/WPXSvInputStream.cxx b/writerperfect/source/common/WPXSvInputStream.cxx index e2bcdc896115..185ae17b20ba 100644 --- a/writerperfect/source/common/WPXSvInputStream.cxx +++ b/writerperfect/source/common/WPXSvInputStream.cxx @@ -439,7 +439,7 @@ private: bool mbCheckedZip; public: sal_Int64 mnLength; - unsigned char *mpReadBuffer; + const unsigned char *mpReadBuffer; unsigned long mnReadBufferLength; unsigned long mnReadBufferPos; }; @@ -865,7 +865,7 @@ const unsigned char *WPXSvInputStream::read(unsigned long numBytes, unsigned lon mpImpl->mnReadBufferLength = numBytes; unsigned long tmpNumBytes(0); - mpImpl->mpReadBuffer = const_cast<unsigned char*>(mpImpl->read(mpImpl->mnReadBufferLength, tmpNumBytes)); + mpImpl->mpReadBuffer = mpImpl->read(mpImpl->mnReadBufferLength, tmpNumBytes); if (tmpNumBytes != mpImpl->mnReadBufferLength) mpImpl->mnReadBufferLength = tmpNumBytes; |