mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
1eafd500e3
commit
29005b578d
3 changed files with 22 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue