diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-25 18:56:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-27 10:10:52 +0200 |
commit | f3049f68584811bb897873f35e0c302898af2d31 (patch) | |
tree | b77f8bee3f733b8f2565a64276e33387576a26ac /registry | |
parent | 28fc0962b10519ab84654d189d2ad0cca8f84f95 (diff) |
loplugin:constantparam
Change-Id: I966dcf87be021520e7cc394338b9c0574bb8afee
Reviewed-on: https://gerrit.libreoffice.org/53541
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/reflread.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |