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>
This commit is contained in:
Robert C. Helling 2019-03-18 21:32:14 +01:00 committed by Dirk Hohndel
parent 4524e2b0b3
commit c7bb67c5be
4 changed files with 18 additions and 18 deletions

View file

@ -152,11 +152,11 @@ RulerNodeItem2 *RulerItem2::destNode() const
return dest;
}
void RulerItem2::setPlotInfo(plot_info info)
void RulerItem2::setPlotInfo(plot_info *info)
{
pInfo = info;
dest->setPlotInfo(info);
source->setPlotInfo(info);
pInfo = *info;
dest->setPlotInfo(*info);
source->setPlotInfo(*info);
dest->recalculate();
source->recalculate();
recalculate();