From 29005b578de4680556f6a3fa01781a8af842ced8 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 5 Jul 2019 22:56:27 +0200 Subject: 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 --- profile-widget/diveprofileitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'profile-widget') 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; -- cgit v1.2.3-70-g09d2