From ce67bc61da9e12987d57f764bc7c8376eea48bbe Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 20 Jan 2015 16:50:11 +0100 Subject: Some more loplugin:cstylecast: writerperfect Change-Id: I5bdc5f147e507d4ac1626133e653bdc9addb5571 --- writerperfect/source/common/DocumentHandler.cxx | 2 +- writerperfect/source/common/WPXSvInputStream.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'writerperfect/source') diff --git a/writerperfect/source/common/DocumentHandler.cxx b/writerperfect/source/common/DocumentHandler.cxx index 72a5b36ac535..d87a736fc782 100644 --- a/writerperfect/source/common/DocumentHandler.cxx +++ b/writerperfect/source/common/DocumentHandler.cxx @@ -32,7 +32,7 @@ static const unsigned char librvng_utf8_skip_data[256] = 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,1,1 }; -#define librvng_utf8_next_char(p) (char const *)((p) + librvng_utf8_skip_data[*((unsigned char const *)p)]) +#define librvng_utf8_next_char(p) (char const *)((p) + librvng_utf8_skip_data[*reinterpret_cast(p)]) static void unescapeXML(const char *s, const unsigned long sz, librevenge::RVNGString &res) { diff --git a/writerperfect/source/common/WPXSvInputStream.cxx b/writerperfect/source/common/WPXSvInputStream.cxx index 8233820b5eca..7bc436fa069e 100644 --- a/writerperfect/source/common/WPXSvInputStream.cxx +++ b/writerperfect/source/common/WPXSvInputStream.cxx @@ -494,7 +494,7 @@ const unsigned char *WPXSvInputStreamImpl::read(unsigned long numBytes, unsigned if (numBytesRead == 0) return 0; - return (const unsigned char *)maData.getConstArray(); + return reinterpret_cast(maData.getConstArray()); } long WPXSvInputStreamImpl::tell() -- cgit