mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
48f7828d10
Use more C++ style memory management for plot_info: Use std::vector for array data. Return the plot_info instead of filling an output parameter. Add a constructor/destructor pair so that the caller isn't bothered with memory management. The bulk of the commit is replacement of pointers with references, which is kind of gratuitous. But I started and then went on... Default initializiation of gas_pressures made it necessary to convert gas.c to c++, though with minimal changes to the code. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
10 lines
247 B
C
10 lines
247 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef GASPRESSURES_H
|
|
#define GASPRESSURES_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
void populate_pressure_information(const struct dive *, const struct divecomputer *, struct plot_info &, int);
|
|
|
|
#endif
|
|
#endif // GASPRESSURES_H
|