Improved loplugin:redundantcast, static_cast on arithmetic types: registry
Change-Id: I68adf213b6c8c44ad3eaed4cf1e0e0db764739fd
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user