summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/CylinderObjectHelper.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-13 22:30:36 +0200
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-09-14 13:20:59 +0200
commit981c23070693b69a3b6a854a41cc91c8516abb95 (patch)
tree1ea986a8932da8cf9b3add850757e437cdc29cb2 /core/subsurface-qt/CylinderObjectHelper.cpp
parent06974f1a2c601922ac9cdca01a87c3ed023cac5c (diff)
downloadsubsurface-981c23070693b69a3b6a854a41cc91c8516abb95.tar.gz
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>
Diffstat (limited to 'core/subsurface-qt/CylinderObjectHelper.cpp')
-rw-r--r--core/subsurface-qt/CylinderObjectHelper.cpp2
1 files changed, 1 insertions, 1 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;