diff options
Diffstat (limited to 'registry/source/reflread.cxx')
-rw-r--r-- | registry/source/reflread.cxx | 3 |
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; } |