summaryrefslogtreecommitdiffstats
path: root/src/Configuration.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Configuration.hpp')
-rw-r--r--src/Configuration.hpp3
1 files changed, 1 insertions, 2 deletions
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<unsigned>(new_setting.type)];
-
+ const auto& color = _port_colors[static_cast<unsigned>(new_setting.type)];
if (color != new_setting.color) {
set_port_color(new_setting.type, new_setting.color);
}