Improved loplugin:redundantcast, static_cast on arithmetic types: registry

Change-Id: I68adf213b6c8c44ad3eaed4cf1e0e0db764739fd
This commit is contained in:
Stephan Bergmann
2017-04-06 18:32:17 +02:00
parent 4538b6d686
commit 97a50f27ed

View File

@@ -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;
}