diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-08 13:53:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-09 17:08:00 +0100 |
commit | 4188ae6a093d935c7c983c7abb0a2fcb89f96c2a (patch) | |
tree | 1546698631a17520fab828822672ba874dddeeb4 /registry | |
parent | 82b91027691a0a7138c0f70b94d6500e35bb8b44 (diff) |
loplugin:indentation in registry..sax
Change-Id: I4b877751818febaec8e64018335dca691a476a43
Reviewed-on: https://gerrit.libreoffice.org/67561
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/keyimpl.cxx | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/registry/source/keyimpl.cxx b/registry/source/keyimpl.cxx index 06bbda584c33..702a380038a1 100644 --- a/registry/source/keyimpl.cxx +++ b/registry/source/keyimpl.cxx @@ -257,21 +257,15 @@ RegError ORegKey::getValueInfo(const OUString& valueName, RegValueType* pValueTy readUINT32(pBuffer.get()+VALUE_TYPEOFFSET, size); *pValueType = static_cast<RegValueType>(type); -// if (*pValueType == RegValueType::UNICODE) -// { -// *pValueSize = (size / 2) * sizeof(sal_Unicode); -// } else -// { - if (*pValueType > RegValueType::BINARY) - { - pBuffer.reset(new sal_uInt8[4]); - rValue.readAt(VALUE_HEADEROFFSET, pBuffer.get(), 4, readBytes); + if (*pValueType > RegValueType::BINARY) + { + pBuffer.reset(new sal_uInt8[4]); + rValue.readAt(VALUE_HEADEROFFSET, pBuffer.get(), 4, readBytes); - readUINT32(pBuffer.get(), size); - } + readUINT32(pBuffer.get(), size); + } - *pValueSize = size; -// } + *pValueSize = size; return RegError::NO_ERROR; } |