From f76752ee031adb82df9763a23dc490d97fa4ef58 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 17 Dec 2021 08:08:11 +0100 Subject: [PATCH] cleanup: fix typos in comments in statistics code Signed-off-by: Berthold Stoeger --- stats/pieseries.cpp | 2 +- stats/statsvariables.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stats/pieseries.cpp b/stats/pieseries.cpp index 84f80b01d..b61f043e1 100644 --- a/stats/pieseries.cpp +++ b/stats/pieseries.cpp @@ -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 sorted(data.size()); diff --git a/stats/statsvariables.cpp b/stats/statsvariables.cpp index 4c5b257a8..1949a11c7 100644 --- a/stats/statsvariables.cpp +++ b/stats/statsvariables.cpp @@ -41,7 +41,7 @@ static QString join_strings(const std::vector &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;