From c7bb67c5bef01772a9e52dddccfa5f02d91393ff Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 18 Mar 2019 21:32:14 +0100 Subject: Profile: pass by reference rather than by value for large struct Addresses LGTM.com suggestion. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- profile-widget/profilewidget2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile-widget/profilewidget2.cpp') 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 -- cgit v1.2.3-70-g09d2