Companion GCC8 warnings removed

This commit is contained in:
Bertrand Songis
2018-08-05 19:33:28 +02:00
parent 8a51682190
commit 2c47883cc2
11 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ ModelData::ModelData(const ModelData & src)
ModelData & ModelData::operator = (const ModelData & src)
{
memcpy(this, &src, sizeof(ModelData));
memcpy(reinterpret_cast<void *>(this), &src, sizeof(ModelData));
return *this;
}
@@ -184,7 +184,7 @@ void ModelData::clearMixes()
void ModelData::clear()
{
memset(this, 0, sizeof(ModelData));
memset(reinterpret_cast<void *>(this), 0, sizeof(ModelData));
modelIndex = -1; // an invalid index, this is managed by the TreeView data model
moduleData[0].channelsCount = 8;
moduleData[1].channelsStart = 0;