diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-03-19 20:05:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-03-19 16:06:14 -0700 |
commit | e19b71709de18bbd21e6567ebd1e2e44d6539fa4 (patch) | |
tree | a1b3bcca450c52e22c5ba312a6cd6c8be2ecf2ff /profile-widget/profilewidget2.cpp | |
parent | dc254716cf3a7e1289f6c72f7b3b90277d18359e (diff) | |
download | subsurface-e19b71709de18bbd21e6567ebd1e2e44d6539fa4.tar.gz |
Cleanup: pass const-reference to RulerItem2::setPlotInfo()
Instead of passing a pointer, pass a cons reference. This is more
idiomatic and consistent with RulerNodeItem2::setPlotInfo().
Also make the reference passed to RulerNodeItem2::setPlotInfo()
const, to make clear that the argument is copied.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 156c456bc..5d282fd95 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 |