Kaydet (Commit) 0ef18e35 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast: nop between pointer types of exactly same spelling

Change-Id: I07d9567da23094836134a54afce660500bf1b3f5
üst 10fe9ed2
......@@ -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)
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment