From fbfb103b5f82ff4820cebead7e8428c0026398e6 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 8 Nov 2017 09:49:32 -0500 Subject: [PATCH] [tracking] Fix deduced type 'auto' doesn't pick up the reference-type returned from tracking(), and 'auto&' reads funny to me, so make the type explicit. --- src/modules/tracking/TrackingViewStep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/tracking/TrackingViewStep.cpp b/src/modules/tracking/TrackingViewStep.cpp index 16a0c0fb3..73662cc3e 100644 --- a/src/modules/tracking/TrackingViewStep.cpp +++ b/src/modules/tracking/TrackingViewStep.cpp @@ -151,7 +151,7 @@ QVariantMap TrackingViewStep::setTrackingOption(const QVariantMap& configuration } cDebug() << " .. settable=" << settingEnabled << "default=" << userEnabled; - auto trackingConfiguration = tracking( t ); + TrackingEnabled& trackingConfiguration = tracking( t ); trackingConfiguration.settingEnabled = settingEnabled; trackingConfiguration.userEnabled = userEnabled;