summaryrefslogtreecommitdiff
path: root/registry/source/regimpl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-17 11:34:22 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-17 11:21:59 +0000
commit0ed7ec1b44edd88037b7b822a49042c4af299491 (patch)
tree23670501e8991eeef0f65d9c8bfc394125557911 /registry/source/regimpl.cxx
parentdb93b92d78714ed193b3cbe52b18e3cfd9da99b8 (diff)
loplugin:constantparam in registry
Change-Id: Ic3c60325a722422912d06fe21d072c5f5c4bccb1 Reviewed-on: https://gerrit.libreoffice.org/23322 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'registry/source/regimpl.cxx')
-rw-r--r--registry/source/regimpl.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index 12455b00c363..e367edbe53da 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -1074,7 +1074,7 @@ RegError ORegistry::checkBlop(OStoreStream& rValue,
sal_uInt8* pSrcBuffer,
bool bReport)
{
- RegistryTypeReader reader(pSrcBuffer, srcValueSize, false);
+ RegistryTypeReader reader(pSrcBuffer, srcValueSize);
if (reader.getTypeClass() == RT_TYPE_INVALID)
{
@@ -1101,7 +1101,7 @@ RegError ORegistry::checkBlop(OStoreStream& rValue,
if (!rValue.readAt(VALUE_HEADEROFFSET, pBuffer, valueSize, rwBytes) &&
(rwBytes == valueSize))
{
- RegistryTypeReader reader2(pBuffer, valueSize, false);
+ RegistryTypeReader reader2(pBuffer, valueSize);
if ((reader.getTypeClass() != reader2.getTypeClass())
|| reader2.getTypeClass() == RT_TYPE_INVALID)
@@ -1212,9 +1212,7 @@ RegError ORegistry::mergeModuleValue(OStoreStream& rTargetValue,
RegistryTypeWriter writer(reader.getTypeClass(),
reader.getTypeName(),
reader.getSuperTypeName(),
- (sal_uInt16)count,
- 0,
- 0);
+ (sal_uInt16)count);
for (sal_uInt32 i=0 ; i < reader.getFieldCount(); i++)
{
@@ -1502,8 +1500,7 @@ RegError ORegistry::dumpValue(const OUString& sPath, const OUString& sName, sal_
sal::static_int_cast< unsigned long >(valueSize));
fprintf(stdout, "%s Data = ", indent);
dumpType(
- typereg::Reader(
- pBuffer, valueSize, false, TYPEREG_VERSION_1),
+ typereg::Reader(pBuffer, valueSize),
sIndent + " ");
}
break;