From 1af5fc3b2ee53771eed6997401aa198107f21f52 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 Oct 2024 18:35:16 -0400 Subject: Add missing const qualifiers --- src/Configuration.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Configuration.hpp') diff --git a/src/Configuration.hpp b/src/Configuration.hpp index d956bd8..ffaee6e 100644 --- a/src/Configuration.hpp +++ b/src/Configuration.hpp @@ -74,8 +74,7 @@ public: // Set a global port color setting void set_setting(setting::PortColor new_setting) { - auto& color = _port_colors[static_cast(new_setting.type)]; - + const auto& color = _port_colors[static_cast(new_setting.type)]; if (color != new_setting.color) { set_port_color(new_setting.type, new_setting.color); } -- cgit v1.2.1