From 03a692c88fd086d8bb2ad3fa4dbddb898bfd9bff Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sun, 25 Sep 2022 18:55:41 +0200 Subject: Fix failing cppcheck fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/58 --- src/exporter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/exporter.cpp') diff --git a/src/exporter.cpp b/src/exporter.cpp index b3d586b..2db9a01 100644 --- a/src/exporter.cpp +++ b/src/exporter.cpp @@ -1,5 +1,6 @@ /* * Copyright 2014 Canonical Ltd. + * Copyright 2022 Robert Tari * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -15,6 +16,7 @@ * * Authors: * Charles Kerr + * Robert Tari */ #include @@ -81,7 +83,7 @@ private: export_actions(m_indicator); - for (auto& profile : m_indicator->profiles()) + for (const auto& profile : m_indicator->profiles()) export_profile(m_indicator, profile); } -- cgit v1.2.3