summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2021-09-21 10:48:32 +0200
committerKarsten Heimrich <karsten.heimrich@qt.io>2021-09-22 20:45:46 +0200
commite224edf5eb7796265bc6b236889124801c145ed4 (patch)
treec8f7d588bfc49b02f60b7017c4c2ee54c0b6acb1
parent3db6348c7e57bb774574adf76a6d76fbb53a5052 (diff)
Clang tidy fix no automatic move
* Local variable cannot be automatically moved due to constness. Change-Id: I6d0a0ce624ada8affc8f98dbdfa11a1e2218e53d Reviewed-by: André Hartmann <aha_1980@gmx.de>
-rw-r--r--src/plugins/canbus/peakcan/peakcanbackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/canbus/peakcan/peakcanbackend.cpp b/src/plugins/canbus/peakcan/peakcanbackend.cpp
index 20e652d..5490865 100644
--- a/src/plugins/canbus/peakcan/peakcanbackend.cpp
+++ b/src/plugins/canbus/peakcan/peakcanbackend.cpp
@@ -230,12 +230,12 @@ QList<QCanBusDeviceInfo> PeakCanBackend::attachedInterfaces(Availability availab
{
#ifdef Q_OS_WIN
bool ok = false;
- const QList<QCanBusDeviceInfo> attachedChannelsResult = interfacesByAttachedChannels(available, &ok);
+ QList<QCanBusDeviceInfo> attachedChannelsResult = interfacesByAttachedChannels(available, &ok);
if (ok)
return attachedChannelsResult;
#endif
- const QList<QCanBusDeviceInfo> result = interfacesByChannelCondition(available);
+ QList<QCanBusDeviceInfo> result = interfacesByChannelCondition(available);
return result;
}