@@ -125,7 +125,7 @@ ROSRunWorker::ROSRunWorker(RunControl *runControl) : RunWorker(runControl)
125125
126126void ROSRunWorker::start ()
127127{
128- for (RunStep *rs : qobject_cast<ROSRunConfiguration *>(runControl ()->target ()->activeRunConfiguration ())->stepList ()->steps ())
128+ for (RunStep *rs : qobject_cast<ROSRunConfiguration *>(runControl ()->target ()->activeRunConfiguration ())->stepList ()->steps ()) // clazy:exclude=range-loop-detach
129129 {
130130 if (rs->enabled () == true && rs->id () != ROSProjectManager::Constants::ROS_ATTACH_TO_NODE_ID)
131131 {
@@ -152,7 +152,7 @@ ROSDebugRunWorker::ROSDebugRunWorker(RunControl *runControl) : Debugger::Debugge
152152void ROSDebugRunWorker::start ()
153153{
154154 bool found = false ;
155- for (RunStep *rs : qobject_cast<ROSRunConfiguration *>(runControl ()->target ()->activeRunConfiguration ())->stepList ()->steps ())
155+ for (RunStep *rs : qobject_cast<ROSRunConfiguration *>(runControl ()->target ()->activeRunConfiguration ())->stepList ()->steps ()) // clazy:exclude=range-loop-detach
156156 {
157157 if (rs->enabled () == true && rs->id () == Constants::ROS_ATTACH_TO_NODE_ID)
158158 {
@@ -181,7 +181,7 @@ void ROSDebugRunWorker::start()
181181 if (found)
182182 {
183183 // Now that the watcher is started run all of the other steps
184- for (RunStep *rs : qobject_cast<ROSRunConfiguration *>(runControl ()->target ()->activeRunConfiguration ())->stepList ()->steps ())
184+ for (RunStep *rs : qobject_cast<ROSRunConfiguration *>(runControl ()->target ()->activeRunConfiguration ())->stepList ()->steps ()) // clazy:exclude=range-loop-detach
185185 {
186186 if (rs->enabled () == true && rs->id () != ROSProjectManager::Constants::ROS_ATTACH_TO_NODE_ID)
187187 {
@@ -219,7 +219,7 @@ void ROSDebugRunWorker::findProcess()
219219 m_timeElapsed += 10 ;
220220 const QString &appName = Utils::FileUtils::normalizedPathName (m_debugTargetPath);
221221 Utils::ProcessInfo fallback;
222- for (const Utils::ProcessInfo &p : Utils::ProcessInfo::processInfoList ()) {
222+ for (const Utils::ProcessInfo &p : Utils::ProcessInfo::processInfoList ()) { // clazy:exclude=range-loop-detach
223223 if (Utils::FileUtils::normalizedPathName (p.executable ) == appName) {
224224 Core::MessageManager::writeSilently (tr (" [ROS] Attaching to process: %1." ).arg (appName));
225225 pidFound (p);
0 commit comments