Fix Static Code Check results

... incomplete class initialization
... duplicate if statements
... typos in objects names (copy&paste) (AllPlot)
... missing else (CPPlot)
... missing DELETEs for objects (only if obvious that object is not used somewhere else)
... copy&paste errors (e.g. ModelPlot)
... small floats instead of integer evaluating to 0
... potential SEGV since pointer is not checked for NULL
... misleading code formatting (hard to read) in *zones.cpp
This commit is contained in:
Joern
2017-03-19 14:22:09 +01:00
parent 7f83a080f4
commit dba6f6f1af
32 changed files with 73 additions and 62 deletions

View File

@@ -1505,7 +1505,7 @@ void RideFileCache::fastSearch(QVector<int>&input, QVector<int>&ride_bests, QVec
else i += 300;
}
#ifdef Q_CC_MSVC
delete dataseries_i;
delete[] dataseries_i;
#endif
// since we minimise the search space over