diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2016-09-23 20:36:52 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2017-01-11 13:26:25 +0000 |
commit | 8595d3a1758b65b2e30770c5491e144ecfcb610c (patch) | |
tree | de423f4a05d680cef19a3164dcfa2acef1aebca7 /src/plugins/canbus/peakcan | |
parent | 403d1004b61eb8d0005ee952b73c77d944e83f77 (diff) |
Eradicate Q_FOREACH loops and mark the module as Q_FOREACH-free
Change-Id: I4ec52799514b750c158e3cb8e6c38d1f1063c6c5
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/canbus/peakcan')
-rw-r--r-- | src/plugins/canbus/peakcan/peakcanbackend.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/canbus/peakcan/peakcanbackend.cpp b/src/plugins/canbus/peakcan/peakcanbackend.cpp index dd7e4cb..83d36c6 100644 --- a/src/plugins/canbus/peakcan/peakcanbackend.cpp +++ b/src/plugins/canbus/peakcan/peakcanbackend.cpp @@ -484,7 +484,8 @@ bool PeakCanBackend::open() // apply all stored configurations except bitrate, because // the bitrate can not be applied after opening of device - foreach (int key, configurationKeys()) { + const auto keys = configurationKeys(); + for (int key : keys) { if (key == QCanBusDevice::BitRateKey) continue; const QVariant param = configurationParameter(key); |