mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user