From f3049f68584811bb897873f35e0c302898af2d31 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 25 Apr 2018 18:56:17 +0200 Subject: loplugin:constantparam Change-Id: I966dcf87be021520e7cc394338b9c0574bb8afee Reviewed-on: https://gerrit.libreoffice.org/53541 Tested-by: Jenkins Reviewed-by: Noel Grandin --- registry/source/reflread.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'registry') diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx index c99ebe33ad49..7ed943afae36 100644 --- a/registry/source/reflread.cxx +++ b/registry/source/reflread.cxx @@ -1109,15 +1109,15 @@ public: sal_uInt32 m_offset_SUPERTYPES; TypeRegistryEntry( - const sal_uInt8* buffer, sal_uInt32 len, bool copyBuffer); + const sal_uInt8* buffer, sal_uInt32 len); // throws std::bad_alloc typereg_Version getVersion() const; }; TypeRegistryEntry::TypeRegistryEntry( - const sal_uInt8* buffer, sal_uInt32 len, bool copyBuffer): - BlopObject(buffer, len, copyBuffer), m_refCount(1), m_nSuperTypes(0), + const sal_uInt8* buffer, sal_uInt32 len): + BlopObject(buffer, len, /*copyBuffer*/false), m_refCount(1), m_nSuperTypes(0), m_offset_SUPERTYPES(0) { std::size_t const entrySize = sizeof(sal_uInt16); @@ -1195,7 +1195,7 @@ bool TYPEREG_CALLTYPE typereg_reader_create( try { entry.reset( new TypeRegistryEntry( - static_cast< sal_uInt8 const * >(buffer), length, false/*copy*/)); + static_cast< sal_uInt8 const * >(buffer), length)); } catch (std::bad_alloc &) { return false; } -- cgit