cleanup: fix typos in comments in statistics code

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-12-17 08:08:11 +01:00 committed by Dirk Hohndel
parent 4fdbb116ef
commit f76752ee03
2 changed files with 3 additions and 3 deletions

View file

@ -102,7 +102,7 @@ PieSeries::PieSeries(StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis, const
for (const auto &[name, dives]: data)
totalCount += (int)dives.size();
// First of all, sort from largest to smalles slice. Instead
// First of all, sort from largest to smallest slice. Instead
// of sorting the initial array, sort a list of indices, so that
// the original order can be easily reconstructed later.
std::vector<int> sorted(data.size());

View file

@ -41,7 +41,7 @@ static QString join_strings(const std::vector<QString> &v)
return res;
}
// A wrapper around dive site, that caches the name of the dive site
// A wrapper around dive site that caches the name of the dive site
struct DiveSiteWrapper {
const dive_site *ds;
QString name;
@ -67,7 +67,7 @@ struct DiveSiteWrapper {
}
};
// A wrapper around dive trips, that caches the name and date of the trip and sorts by trip start date
// A wrapper around dive trips that caches the name and date of the trip and sorts by trip start date
struct TripWrapper {
const dive_trip *t;
QString name;