diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:50:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:50:18 +0200 |
commit | 0ef18e3531776bfaf8367cb5531630be40e5dc1d (patch) | |
tree | f7944877a912db64ade3a4066ec15043dee30e81 | |
parent | 10fe9ed22b10e3b285257da1e24829b2e91785bb (diff) |
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: I07d9567da23094836134a54afce660500bf1b3f5
-rw-r--r-- | registry/source/keyimpl.cxx | 10 | ||||
-rw-r--r-- | registry/source/regimpl.cxx | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/registry/source/keyimpl.cxx b/registry/source/keyimpl.cxx index c5b3a1b7265d..8336ff90b6b4 100644 --- a/registry/source/keyimpl.cxx +++ b/registry/source/keyimpl.cxx @@ -259,7 +259,7 @@ RegError ORegKey::getValueInfo(const OUString& valueName, RegValueType* pValueTy } sal_uInt32 size; - sal_uInt8 type = *((sal_uInt8*)pBuffer); + sal_uInt8 type = *pBuffer; readUINT32(pBuffer+VALUE_TYPEOFFSET, size); *pValueType = (RegValueType)type; @@ -595,7 +595,7 @@ RegError ORegKey::getValue(const OUString& valueName, RegValue value) const return RegError::INVALID_VALUE; } - sal_uInt8 type = *((sal_uInt8*)pBuffer); + sal_uInt8 type = *pBuffer; valueType = (RegValueType)type; readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize); @@ -695,7 +695,7 @@ RegError ORegKey::getLongListValue(const OUString& valueName, sal_Int32** pValue return RegError::INVALID_VALUE; } - sal_uInt8 type = *((sal_uInt8*)pBuffer); + sal_uInt8 type = *pBuffer; valueType = (RegValueType)type; if (valueType != RegValueType::LONGLIST) @@ -809,7 +809,7 @@ RegError ORegKey::getStringListValue(const OUString& valueName, sal_Char*** pVal return RegError::INVALID_VALUE; } - sal_uInt8 type = *((sal_uInt8*)pBuffer); + sal_uInt8 type = *pBuffer; valueType = (RegValueType)type; if (valueType != RegValueType::STRINGLIST) @@ -915,7 +915,7 @@ RegError ORegKey::getUnicodeListValue(const OUString& valueName, sal_Unicode*** return RegError::INVALID_VALUE; } - sal_uInt8 type = *((sal_uInt8*)pBuffer); + sal_uInt8 type = *pBuffer; valueType = (RegValueType)type; if (valueType != RegValueType::UNICODELIST) diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index 95ed912e8b68..6af272039128 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -1055,7 +1055,7 @@ RegError ORegistry::loadAndSaveValue(ORegKey* pTargetKey, } RegError _ret = RegError::NO_ERROR; - sal_uInt8 type = *((sal_uInt8*)pBuffer); + sal_uInt8 type = *pBuffer; valueType = (RegValueType)type; readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize); rtl_freeMemory(pBuffer); @@ -1148,7 +1148,7 @@ RegError ORegistry::checkBlop(OStoreStream& rValue, if (!rValue.readAt(0, pBuffer, VALUE_HEADERSIZE, rwBytes) && (rwBytes == VALUE_HEADERSIZE)) { - sal_uInt8 type = *((sal_uInt8*)pBuffer); + sal_uInt8 type = *pBuffer; valueType = (RegValueType)type; readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize); rtl_freeMemory(pBuffer); @@ -1490,7 +1490,7 @@ RegError ORegistry::dumpValue(const OUString& sPath, const OUString& sName, sal_ return RegError::INVALID_VALUE; } - sal_uInt8 type = *((sal_uInt8*)pBuffer); + sal_uInt8 type = *pBuffer; valueType = (RegValueType)type; readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize); |