summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-20 16:50:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-21 14:03:43 +0100
commitce67bc61da9e12987d57f764bc7c8376eea48bbe (patch)
treec333f6a934330f7ef4fbe1b39cf91abd994f1d25 /writerperfect
parentf53972b0285cfd11da30f2723a662ff76c40c757 (diff)
Some more loplugin:cstylecast: writerperfect
Change-Id: I5bdc5f147e507d4ac1626133e653bdc9addb5571
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/common/DocumentHandler.cxx2
-rw-r--r--writerperfect/source/common/WPXSvInputStream.cxx2
2 files changed, 2 insertions, 2 deletions
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<unsigned char const *>(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<const unsigned char *>(maData.getConstArray());
}
long WPXSvInputStreamImpl::tell()