mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Coding-style: remove superfluous parentheses
Mostly replace "return (expression);" by "return expression;" and one case of "function((parameter))" by "function(parameter)". Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
36b8594cce
commit
5c248d91cd
20 changed files with 30 additions and 30 deletions
|
@ -136,7 +136,7 @@ void LocationInformationModel::update()
|
|||
|
||||
QStringList LocationInformationModel::allSiteNames() const
|
||||
{
|
||||
return(locationNames);
|
||||
return locationNames;
|
||||
}
|
||||
|
||||
bool LocationInformationModel::setData(const QModelIndex &index, const QVariant &value, int role)
|
||||
|
@ -200,5 +200,5 @@ bool filter_same_gps_cb (QAbstractItemModel *model, int sourceRow, const QModelI
|
|||
if (ds->latitude.udeg == 0 || ds->longitude.udeg == 0)
|
||||
return false;
|
||||
|
||||
return (ds->latitude.udeg == ref_lat && ds->longitude.udeg == ref_lon && ds->uuid != ref_uuid);
|
||||
return ds->latitude.udeg == ref_lat && ds->longitude.udeg == ref_lon && ds->uuid != ref_uuid;
|
||||
}
|
||||
|
|
|
@ -178,7 +178,7 @@ bool DivePlannerPointsModel::updateMaxDepth()
|
|||
if (p.depth.mm > displayed_dive.maxdepth.mm)
|
||||
displayed_dive.maxdepth.mm = p.depth.mm;
|
||||
}
|
||||
return (displayed_dive.maxdepth.mm != prevMaxDepth);
|
||||
return displayed_dive.maxdepth.mm != prevMaxDepth;
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::removeDeco()
|
||||
|
|
|
@ -408,7 +408,7 @@ bool MultiFilterSortModel::filterAcceptsRow(int source_row, const QModelIndex &s
|
|||
ds = get_dive_site_by_uuid(d->dive_site_uuid);
|
||||
if (!ds)
|
||||
return false;
|
||||
return (same_string(ds->name, curr_dive_site->name) || ds->uuid == curr_dive_site->uuid);
|
||||
return same_string(ds->name, curr_dive_site->name) || ds->uuid == curr_dive_site->uuid;
|
||||
}
|
||||
|
||||
if (justCleared || models.isEmpty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue