diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-07-05 22:56:27 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-07-18 05:50:22 -0700 |
commit | 29005b578de4680556f6a3fa01781a8af842ced8 (patch) | |
tree | 3b2985025b974f14bd3f2befb756defdfac34ffc /profile-widget | |
parent | 1eafd500e329fedffba55a598e2755659fefc2fb (diff) | |
download | subsurface-29005b578de4680556f6a3fa01781a8af842ced8.tar.gz |
Cleanup: turn GET_PRESSURE macro into inline function
There is absolutely no reason to use a macro here.
The only argument that can be made is consistency with
the other pressure-macros, but those too are questionable.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/diveprofileitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index c71e297bf..6d5cdb2da 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -669,7 +669,7 @@ void DiveGasPressureItem::modelDataChanged(const QModelIndex &topLeft, const QMo struct plot_data *entry = dataModel->data().entry + i; for (int cyl = 0; cyl < MAX_CYLINDERS; cyl++) { - int mbar = GET_PRESSURE(entry, cyl); + int mbar = get_plot_pressure(entry, cyl); int time = entry->sec; if (!mbar) @@ -729,7 +729,7 @@ void DiveGasPressureItem::modelDataChanged(const QModelIndex &topLeft, const QMo struct plot_data *entry = dataModel->data().entry + i; for (int cyl = 0; cyl < MAX_CYLINDERS; cyl++) { - int mbar = GET_PRESSURE(entry, cyl); + int mbar = get_plot_pressure(entry, cyl); if (!mbar) continue; |