aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2019-03-18 21:32:14 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-03-18 19:40:32 -0700
commitc7bb67c5bef01772a9e52dddccfa5f02d91393ff (patch)
treed032174cd0f5206de3063274d6a641a881c1dbe4 /profile-widget/profilewidget2.cpp
parent4524e2b0b39f47996cd8acc0c938c47753f31854 (diff)
downloadsubsurface-c7bb67c5bef01772a9e52dddccfa5f02d91393ff.tar.gz
Profile: pass by reference rather than by value for large struct
Addresses LGTM.com suggestion. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r--profile-widget/profilewidget2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 5d282fd95..156c456bc 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -718,7 +718,7 @@ void ProfileWidget2::plotDive(const struct dive *d, bool force, bool doClearPict
cylinderPressureAxis->setMinimum(plotInfo.minpressure);
cylinderPressureAxis->setMaximum(plotInfo.maxpressure);
#ifndef SUBSURFACE_MOBILE
- rulerItem->setPlotInfo(plotInfo);
+ rulerItem->setPlotInfo(&plotInfo);
#endif
#ifdef SUBSURFACE_MOBILE