mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: use std::size() instead of arithmetics
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e2338fe7e9
commit
f407f5269a
1 changed files with 1 additions and 1 deletions
|
@ -676,7 +676,7 @@ QString get_water_type_string(int salinity)
|
|||
QStringList getWaterTypesAsString()
|
||||
{
|
||||
QStringList res;
|
||||
res.reserve(std::end(waterTypes) - std::begin(waterTypes)); // Waiting for C++17's std::size()
|
||||
res.reserve(std::size(waterTypes));
|
||||
for (const char *t: waterTypes)
|
||||
res.push_back(gettextFromC::tr(t));
|
||||
return res;
|
||||
|
|
Loading…
Add table
Reference in a new issue