mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: make cylinder_t argument to CylinderObjectHelper const
CylinderObjectHelper copies state from the passed in cylinder_t but does not modify it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
06974f1a2c
commit
981c230706
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
#include "../qthelper.h"
|
#include "../qthelper.h"
|
||||||
|
|
||||||
static QString EMPTY_CYLINDER_STRING = QStringLiteral("");
|
static QString EMPTY_CYLINDER_STRING = QStringLiteral("");
|
||||||
CylinderObjectHelper::CylinderObjectHelper(cylinder_t *cylinder)
|
CylinderObjectHelper::CylinderObjectHelper(const cylinder_t *cylinder)
|
||||||
{
|
{
|
||||||
if (!cylinder)
|
if (!cylinder)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -15,7 +15,7 @@ class CylinderObjectHelper {
|
||||||
Q_PROPERTY(QString endPressure MEMBER endPressure CONSTANT)
|
Q_PROPERTY(QString endPressure MEMBER endPressure CONSTANT)
|
||||||
Q_PROPERTY(QString gasMix MEMBER gasMix CONSTANT)
|
Q_PROPERTY(QString gasMix MEMBER gasMix CONSTANT)
|
||||||
public:
|
public:
|
||||||
CylinderObjectHelper(cylinder_t *cylinder = NULL);
|
CylinderObjectHelper(const cylinder_t *cylinder = NULL);
|
||||||
QString description;
|
QString description;
|
||||||
QString size;
|
QString size;
|
||||||
QString workingPressure;
|
QString workingPressure;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue