summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-06-03 10:11:53 +0200
committerDavid Tardon <dtardon@redhat.com>2014-06-03 10:11:53 +0200
commitd3ddcbaeef9648cff78069b8ed443d7d3d611546 (patch)
tree827b9689c089ee2fcd082e83cfb667c646c878ca /writerperfect
parent9533611f410dd36950c69a45fb6abe7e8760b281 (diff)
drop useless const_cast
Change-Id: Ie5e6f519a511931b383b6131a4a188abb3396946
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/common/WPXSvInputStream.cxx4
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;