From 285fa8acbceebf5dc87c5c3befe42a2917a3b844 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Wed, 11 Mar 2020 11:30:51 +0100 Subject: Grammar: replaces 'indexes' by 'indices' Grammar-nazi ran git grep -l 'indexes' | xargs sed -i '' -e 's/indexes/indices/g' to prevent future wincing when reading the source code. Unfortunatly, Qt itself is infected as in QModelIndexList QItemSelection::indexes() const Signed-off-by: Robert C. Helling --- core/dive.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'core/dive.c') diff --git a/core/dive.c b/core/dive.c index 71b1038ec..ffdf91ae3 100644 --- a/core/dive.c +++ b/core/dive.c @@ -43,10 +43,10 @@ const char *divemode_text[] = {"OC", "CCR", "PSCR", "Freedive"}; * We try to keep the same sensor index for the same sensor, so that even * if the dive computer doesn't give pressure information for every sample, * we don't move pressure information around between the different sensor - * indexes. + * indices. * * The "prepare_sample()" function will always copy the sensor indices - * from the previous sample, so the indexes are pre-populated (but the + * from the previous sample, so the indices are pre-populated (but the * pressures obviously are not) */ void add_sample_pressure(struct sample *sample, int sensor, int mbar) @@ -83,7 +83,7 @@ void add_sample_pressure(struct sample *sample, int sensor, int mbar) * "o2pressure" that is fixed to the Oxygen sensor for a CCR dive. * * For more complex pressure data, we have to use explicit - * cylinder indexes for each sample. + * cylinder indices for each sample. * * This function returns a negative number for "no legacy mode", * or a non-negative number that indicates the o2 sensor index. @@ -2049,11 +2049,11 @@ static void dc_cylinder_renumber(struct dive *dive, struct divecomputer *dc, con int i; struct event *ev; - /* Remap or delete the sensor indexes */ + /* Remap or delete the sensor indices */ for (i = 0; i < dc->samples; i++) sample_renumber(dc->sample + i, i, mapping); - /* Remap the gas change indexes */ + /* Remap the gas change indices */ for (ev = dc->events; ev; ev = ev->next) event_renumber(ev, mapping); @@ -2063,8 +2063,8 @@ static void dc_cylinder_renumber(struct dive *dive, struct divecomputer *dc, con } /* - * If the cylinder indexes change (due to merging dives or deleting - * cylinders in the middle), we need to change the indexes in the + * If the cylinder indices change (due to merging dives or deleting + * cylinders in the middle), we need to change the indices in the * dive computer data for this dive. * * Also note that we assume that the initial cylinder is cylinder 0, -- cgit v1.2.3-70-g09d2