diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:04:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:04:11 +0100 |
commit | 6f58d7a12e4acaad59a00df345591ac5ce552cbe (patch) | |
tree | 7272fdf0bcf3ce2a366fd34fb5138ff8f25e4539 /registry/source/regimpl.cxx | |
parent | 3ffa72253ba027460232a6aeded8007ad029d125 (diff) |
More loplugin:cstylecast: registry
Change-Id: I2c9436f5f9ea5ef3051d22310dee48ec39fad850
Diffstat (limited to 'registry/source/regimpl.cxx')
-rw-r--r-- | registry/source/regimpl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index db665844e502..0bb4b2126ffa 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -953,7 +953,7 @@ RegError ORegistry::loadAndSaveValue(ORegKey* pTargetKey, RegError _ret = RegError::NO_ERROR; sal_uInt8 type = *pBuffer; - valueType = (RegValueType)type; + valueType = static_cast<RegValueType>(type); readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize); rtl_freeMemory(pBuffer); @@ -1041,7 +1041,7 @@ RegError ORegistry::checkBlop(OStoreStream& rValue, (rwBytes == VALUE_HEADERSIZE)) { sal_uInt8 type = *pBuffer; - valueType = (RegValueType)type; + valueType = static_cast<RegValueType>(type); readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize); rtl_freeMemory(pBuffer); @@ -1189,7 +1189,7 @@ RegError ORegistry::mergeModuleValue(OStoreStream& rTargetValue, const sal_uInt8* pBlop = writer.getBlop(); sal_uInt32 aBlopSize = writer.getBlopSize(); - sal_uInt8 type = (sal_uInt8)RegValueType::BINARY; + sal_uInt8 type = sal_uInt8(RegValueType::BINARY); sal_uInt8* pBuffer = static_cast<sal_uInt8*>(rtl_allocateMemory(VALUE_HEADERSIZE + aBlopSize)); memcpy(pBuffer, &type, 1); @@ -1363,7 +1363,7 @@ RegError ORegistry::dumpValue(const OUString& sPath, const OUString& sName, sal_ } sal_uInt8 type = *pBuffer; - valueType = (RegValueType)type; + valueType = static_cast<RegValueType>(type); readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize); pBuffer = static_cast<sal_uInt8*>(rtl_allocateMemory(valueSize)); |