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
@@ -80,7 +80,7 @@ QString LimitData::offsetToString() const
void LimitData::clear()
{
memset(this, 0, sizeof(LimitData));
memset(reinterpret_cast<void *>(this), 0, sizeof(LimitData));
min = -1000;
max = +1000;
}
@@ -123,7 +123,7 @@ QString CurveData::nameToString(const int idx) const
void FlightModeData::clear(const int phase)
{
memset(this, 0, sizeof(FlightModeData));
memset(reinterpret_cast<void *>(this), 0, sizeof(FlightModeData));
if (phase != 0) {
for (int idx=0; idx<CPN_MAX_GVARS; idx++) {
gvars[idx] = 1025;