loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: I07d9567da23094836134a54afce660500bf1b3f5
This commit is contained in:
@@ -259,7 +259,7 @@ RegError ORegKey::getValueInfo(const OUString& valueName, RegValueType* pValueTy
|
|||||||
}
|
}
|
||||||
|
|
||||||
sal_uInt32 size;
|
sal_uInt32 size;
|
||||||
sal_uInt8 type = *((sal_uInt8*)pBuffer);
|
sal_uInt8 type = *pBuffer;
|
||||||
readUINT32(pBuffer+VALUE_TYPEOFFSET, size);
|
readUINT32(pBuffer+VALUE_TYPEOFFSET, size);
|
||||||
|
|
||||||
*pValueType = (RegValueType)type;
|
*pValueType = (RegValueType)type;
|
||||||
@@ -595,7 +595,7 @@ RegError ORegKey::getValue(const OUString& valueName, RegValue value) const
|
|||||||
return RegError::INVALID_VALUE;
|
return RegError::INVALID_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_uInt8 type = *((sal_uInt8*)pBuffer);
|
sal_uInt8 type = *pBuffer;
|
||||||
valueType = (RegValueType)type;
|
valueType = (RegValueType)type;
|
||||||
readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize);
|
readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize);
|
||||||
|
|
||||||
@@ -695,7 +695,7 @@ RegError ORegKey::getLongListValue(const OUString& valueName, sal_Int32** pValue
|
|||||||
return RegError::INVALID_VALUE;
|
return RegError::INVALID_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_uInt8 type = *((sal_uInt8*)pBuffer);
|
sal_uInt8 type = *pBuffer;
|
||||||
valueType = (RegValueType)type;
|
valueType = (RegValueType)type;
|
||||||
|
|
||||||
if (valueType != RegValueType::LONGLIST)
|
if (valueType != RegValueType::LONGLIST)
|
||||||
@@ -809,7 +809,7 @@ RegError ORegKey::getStringListValue(const OUString& valueName, sal_Char*** pVal
|
|||||||
return RegError::INVALID_VALUE;
|
return RegError::INVALID_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_uInt8 type = *((sal_uInt8*)pBuffer);
|
sal_uInt8 type = *pBuffer;
|
||||||
valueType = (RegValueType)type;
|
valueType = (RegValueType)type;
|
||||||
|
|
||||||
if (valueType != RegValueType::STRINGLIST)
|
if (valueType != RegValueType::STRINGLIST)
|
||||||
@@ -915,7 +915,7 @@ RegError ORegKey::getUnicodeListValue(const OUString& valueName, sal_Unicode***
|
|||||||
return RegError::INVALID_VALUE;
|
return RegError::INVALID_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_uInt8 type = *((sal_uInt8*)pBuffer);
|
sal_uInt8 type = *pBuffer;
|
||||||
valueType = (RegValueType)type;
|
valueType = (RegValueType)type;
|
||||||
|
|
||||||
if (valueType != RegValueType::UNICODELIST)
|
if (valueType != RegValueType::UNICODELIST)
|
||||||
|
@@ -1055,7 +1055,7 @@ RegError ORegistry::loadAndSaveValue(ORegKey* pTargetKey,
|
|||||||
}
|
}
|
||||||
|
|
||||||
RegError _ret = RegError::NO_ERROR;
|
RegError _ret = RegError::NO_ERROR;
|
||||||
sal_uInt8 type = *((sal_uInt8*)pBuffer);
|
sal_uInt8 type = *pBuffer;
|
||||||
valueType = (RegValueType)type;
|
valueType = (RegValueType)type;
|
||||||
readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize);
|
readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize);
|
||||||
rtl_freeMemory(pBuffer);
|
rtl_freeMemory(pBuffer);
|
||||||
@@ -1148,7 +1148,7 @@ RegError ORegistry::checkBlop(OStoreStream& rValue,
|
|||||||
if (!rValue.readAt(0, pBuffer, VALUE_HEADERSIZE, rwBytes) &&
|
if (!rValue.readAt(0, pBuffer, VALUE_HEADERSIZE, rwBytes) &&
|
||||||
(rwBytes == VALUE_HEADERSIZE))
|
(rwBytes == VALUE_HEADERSIZE))
|
||||||
{
|
{
|
||||||
sal_uInt8 type = *((sal_uInt8*)pBuffer);
|
sal_uInt8 type = *pBuffer;
|
||||||
valueType = (RegValueType)type;
|
valueType = (RegValueType)type;
|
||||||
readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize);
|
readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize);
|
||||||
rtl_freeMemory(pBuffer);
|
rtl_freeMemory(pBuffer);
|
||||||
@@ -1490,7 +1490,7 @@ RegError ORegistry::dumpValue(const OUString& sPath, const OUString& sName, sal_
|
|||||||
return RegError::INVALID_VALUE;
|
return RegError::INVALID_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_uInt8 type = *((sal_uInt8*)pBuffer);
|
sal_uInt8 type = *pBuffer;
|
||||||
valueType = (RegValueType)type;
|
valueType = (RegValueType)type;
|
||||||
readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize);
|
readUINT32(pBuffer+VALUE_TYPEOFFSET, valueSize);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user