mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: fix typos in comments in statistics code
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4fdbb116ef
commit
f76752ee03
2 changed files with 3 additions and 3 deletions
|
@ -102,7 +102,7 @@ PieSeries::PieSeries(StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis, const
|
||||||
for (const auto &[name, dives]: data)
|
for (const auto &[name, dives]: data)
|
||||||
totalCount += (int)dives.size();
|
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
|
// of sorting the initial array, sort a list of indices, so that
|
||||||
// the original order can be easily reconstructed later.
|
// the original order can be easily reconstructed later.
|
||||||
std::vector<int> sorted(data.size());
|
std::vector<int> sorted(data.size());
|
||||||
|
|
|
@ -41,7 +41,7 @@ static QString join_strings(const std::vector<QString> &v)
|
||||||
return res;
|
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 {
|
struct DiveSiteWrapper {
|
||||||
const dive_site *ds;
|
const dive_site *ds;
|
||||||
QString name;
|
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 {
|
struct TripWrapper {
|
||||||
const dive_trip *t;
|
const dive_trip *t;
|
||||||
QString name;
|
QString name;
|
||||||
|
|
Loading…
Add table
Reference in a new issue