summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-06 18:32:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-06 18:32:17 +0200
commit97a50f27ed06fc5d257c595c0bfffba57ddb511f (patch)
tree1e317ec2245ff719b2a79715ff4e02e57c21f901 /registry
parent4538b6d6860df56de155b6e6bc39b7b022ce4180 (diff)
Improved loplugin:redundantcast, static_cast on arithmetic types: registry
Change-Id: I68adf213b6c8c44ad3eaed4cf1e0e0db764739fd
Diffstat (limited to 'registry')
-rw-r--r--registry/source/reflread.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx
index a87acfcb8292..de22f988984e 100644
--- a/registry/source/reflread.cxx
+++ b/registry/source/reflread.cxx
@@ -1218,8 +1218,7 @@ bool TYPEREG_CALLTYPE typereg_reader_create(
try {
entry.reset(
new TypeRegistryEntry(
- static_cast< sal_uInt8 const * >(buffer),
- static_cast< sal_uInt32 >(length), copy));
+ static_cast< sal_uInt8 const * >(buffer), length, copy));
} catch (std::bad_alloc &) {
return false;
}