summaryrefslogtreecommitdiff
path: root/registry/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-20 10:20:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-20 13:39:08 +0200
commit56775815a39c2ee4a0f711738947d2fb234c4923 (patch)
treee11780c6736e32518950102ceb73103fabaeb576 /registry/source
parentfe851316be45b891468fdab4d8b8f23fdf869e5e (diff)
loplugin:constantparam
Change-Id: Ia58d8950b3b9e48bbe9f075b9fe1eed62d9abf0d Reviewed-on: https://gerrit.libreoffice.org/53188 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'registry/source')
-rw-r--r--registry/source/reflread.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx
index c434d903d0d4..c99ebe33ad49 100644
--- a/registry/source/reflread.cxx
+++ b/registry/source/reflread.cxx
@@ -1183,8 +1183,8 @@ typereg_Version TypeRegistryEntry::getVersion() const {
**************************************************************************/
bool TYPEREG_CALLTYPE typereg_reader_create(
- void const * buffer, sal_uInt32 length, bool copy,
- typereg_Version maxVersion, void ** result)
+ void const * buffer, sal_uInt32 length,
+ void ** result)
{
if (length < OFFSET_CP || length > SAL_MAX_UINT32) {
*result = nullptr;
@@ -1195,7 +1195,7 @@ bool TYPEREG_CALLTYPE typereg_reader_create(
try {
entry.reset(
new TypeRegistryEntry(
- static_cast< sal_uInt8 const * >(buffer), length, copy));
+ static_cast< sal_uInt8 const * >(buffer), length, false/*copy*/));
} catch (std::bad_alloc &) {
return false;
}
@@ -1204,7 +1204,7 @@ bool TYPEREG_CALLTYPE typereg_reader_create(
return true;
}
typereg_Version version = entry->getVersion();
- if (version < TYPEREG_VERSION_0 || version > maxVersion) {
+ if (version < TYPEREG_VERSION_0 || version > TYPEREG_VERSION_1) {
*result = nullptr;
return true;
}
@@ -1219,7 +1219,7 @@ bool TYPEREG_CALLTYPE typereg_reader_create(
static TypeReaderImpl TYPEREG_CALLTYPE createEntry(const sal_uInt8* buffer, sal_uInt32 len)
{
void * handle;
- typereg_reader_create(buffer, len, false/*copyBuffer*/, TYPEREG_VERSION_1, &handle);
+ typereg_reader_create(buffer, len, &handle);
return handle;
}