summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/subsurface-qt/CylinderObjectHelper.cpp2
-rw-r--r--core/subsurface-qt/CylinderObjectHelper.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/subsurface-qt/CylinderObjectHelper.cpp b/core/subsurface-qt/CylinderObjectHelper.cpp
index f8386c402..28c14e10a 100644
--- a/core/subsurface-qt/CylinderObjectHelper.cpp
+++ b/core/subsurface-qt/CylinderObjectHelper.cpp
@@ -3,7 +3,7 @@
#include "../qthelper.h"
static QString EMPTY_CYLINDER_STRING = QStringLiteral("");
-CylinderObjectHelper::CylinderObjectHelper(cylinder_t *cylinder)
+CylinderObjectHelper::CylinderObjectHelper(const cylinder_t *cylinder)
{
if (!cylinder)
return;
diff --git a/core/subsurface-qt/CylinderObjectHelper.h b/core/subsurface-qt/CylinderObjectHelper.h
index f7df7f746..e1e2490e4 100644
--- a/core/subsurface-qt/CylinderObjectHelper.h
+++ b/core/subsurface-qt/CylinderObjectHelper.h
@@ -15,7 +15,7 @@ class CylinderObjectHelper {
Q_PROPERTY(QString endPressure MEMBER endPressure CONSTANT)
Q_PROPERTY(QString gasMix MEMBER gasMix CONSTANT)
public:
- CylinderObjectHelper(cylinder_t *cylinder = NULL);
+ CylinderObjectHelper(const cylinder_t *cylinder = NULL);
QString description;
QString size;
QString workingPressure;