From ed1942128078a30ea0436c3f2eb6cd9d60a82a4d Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Thu, 2 Feb 2017 13:45:02 +0100 Subject: Unify endless loops Replace the macro forever with its expansion "for (;;)", as forever will be deprecated in later Qt versions. Also change the place where another pattern "while (true)" was used, to have them unique (Vector and Systec already use "for (;;)". Change-Id: I3582f7b674c17c35c6954eb359bacf81d2c1faab Reviewed-by: Alex Blasche --- src/plugins/canbus/peakcan/peakcanbackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/canbus/peakcan') diff --git a/src/plugins/canbus/peakcan/peakcanbackend.cpp b/src/plugins/canbus/peakcan/peakcanbackend.cpp index 7d4e123..9d8ac5d 100644 --- a/src/plugins/canbus/peakcan/peakcanbackend.cpp +++ b/src/plugins/canbus/peakcan/peakcanbackend.cpp @@ -400,7 +400,7 @@ void PeakCanBackendPrivate::startRead() QVector newFrames; - forever { + for (;;) { TPCANMsg message; ::memset(&message, 0, sizeof(message)); TPCANTimestamp timestamp; -- cgit v1.2.3