diff --git a/app/mon/mon_gui/src/widgets/ecalmon_tree_widget/ecalmon_tree_widget.cpp b/app/mon/mon_gui/src/widgets/ecalmon_tree_widget/ecalmon_tree_widget.cpp index 1de5585efb..97f4173e2d 100644 --- a/app/mon/mon_gui/src/widgets/ecalmon_tree_widget/ecalmon_tree_widget.cpp +++ b/app/mon/mon_gui/src/widgets/ecalmon_tree_widget/ecalmon_tree_widget.cpp @@ -1,6 +1,6 @@ /* ========================= eCAL LICENSE ================================= * - * Copyright (C) 2016 - 2019 Continental Corporation + * Copyright (C) 2016 - 2024 Continental Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -508,7 +508,7 @@ void EcalmonTreeWidget::loadGuiSettings(const QString& group) QVector group_by_columns; int auto_expand = 0; - for (auto column_variant : settings.value("group_by_columns").toList()) + for (const auto& column_variant : settings.value("group_by_columns").toList()) { int column = column_variant.toInt(); if ((column >= 0) && (column < group_tree_model_->columnCount())) diff --git a/app/mon/mon_gui/src/widgets/models/host_tree_item.cpp b/app/mon/mon_gui/src/widgets/models/host_tree_item.cpp index 15e084c5ef..74d04c2608 100644 --- a/app/mon/mon_gui/src/widgets/models/host_tree_item.cpp +++ b/app/mon/mon_gui/src/widgets/models/host_tree_item.cpp @@ -1,6 +1,6 @@ /* ========================= eCAL LICENSE ================================= * - * Copyright (C) 2016 - 2019 Continental Corporation + * Copyright (C) 2016 - 2024 Continental Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -167,8 +167,9 @@ void HostTreeItem::update(const eCAL::pb::Monitoring& monitoring_pb) data_received_bytes_ = 0; // Fill variables with accumulated data - for (auto topic : monitoring_pb.topics()) + for (int i = 0; i clear(); - for (auto publisher : publishers) + for (const auto& publisher : publishers) ui_.textEdit->append(publisher); }