From 97a50f27ed06fc5d257c595c0bfffba57ddb511f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 6 Apr 2017 18:32:17 +0200 Subject: Improved loplugin:redundantcast, static_cast on arithmetic types: registry Change-Id: I68adf213b6c8c44ad3eaed4cf1e0e0db764739fd --- registry/source/reflread.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'registry') 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; } -- cgit