diff options
author | Jannis Voelker <jannis.voelker@basyskom.com> | 2021-01-28 16:54:04 +0100 |
---|---|---|
committer | Jannis Voelker <jannis.voelker@basyskom.com> | 2021-01-29 08:55:20 +0100 |
commit | ba7cbfa95eb59b46a9bed9e1dc938738ee152b60 (patch) | |
tree | a5f715bb512d6c7e84d34e9642c1106f7acd095f /src | |
parent | f9deda0d3e0e7453e58ea18c797d1ad38c3f63f4 (diff) |
Fix range-based for loop in Open62541AsyncBackend
Change-Id: I90385172fe2781c082e2e3f8bbf3efd0cc0ac36b
Pick-to: 6.0
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/opcua/open62541/qopen62541backend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/opcua/open62541/qopen62541backend.cpp b/src/plugins/opcua/open62541/qopen62541backend.cpp index c90a8a9..a597cb3 100644 --- a/src/plugins/opcua/open62541/qopen62541backend.cpp +++ b/src/plugins/opcua/open62541/qopen62541backend.cpp @@ -1119,7 +1119,7 @@ void Open62541AsyncBackend::reevaluateClientIterateTimer() m_clientIterateTimer.start(m_maximumIterateInterval); else {// Derive an interval from the the lowest subscription and a lower limit. double minimum = (std::numeric_limits<double>::max)(); - for (const auto subscription : m_subscriptions) + for (const auto &subscription : m_subscriptions) minimum = subscription->interval() < minimum ? subscription->interval() : minimum; // Set an interval between configured minimum and maximum, depending on the fastest subscription m_clientIterateTimer.start((std::min)(m_maximumIterateInterval, (std::max)(m_minimumIterateInterval, minimum))); |