summaryrefslogtreecommitdiffstats
path: root/src/Configuration.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-11 18:35:16 -0400
committerDavid Robillard <d@drobilla.net>2024-10-11 18:35:16 -0400
commit1af5fc3b2ee53771eed6997401aa198107f21f52 (patch)
treec8f57c248a6c074f3b3d1f9609ada13665a8baab /src/Configuration.hpp
parent07ca96e059ae22420cd3fd3902a989993ec66766 (diff)
downloadpatchage-1af5fc3b2ee53771eed6997401aa198107f21f52.tar.gz
patchage-1af5fc3b2ee53771eed6997401aa198107f21f52.tar.bz2
patchage-1af5fc3b2ee53771eed6997401aa198107f21f52.zip
Add missing const qualifiers
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);
}