From 11b7d2edbf9c4a3b6dd1d7037d82aeb661a450fe Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 1 Feb 2016 18:42:25 -0500 Subject: [PATCH] Column: Uses const loop iterators --- src/columns/Column.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/columns/Column.cpp b/src/columns/Column.cpp index c4572708f..54dec14e0 100644 --- a/src/columns/Column.cpp +++ b/src/columns/Column.cpp @@ -151,7 +151,7 @@ void Column::uda (std::map & all) // For each UDA, instantiate and initialize ColumnUDA(). std::set udas; - for (auto& i : context.config) + for (const auto& i : context.config) { if (i.first.substr (0, 4) == "uda.") { @@ -162,7 +162,7 @@ void Column::uda (std::map & all) } } - for (auto& uda : udas) + for (const auto& uda : udas) { if (all.find (uda) != all.end ()) throw format (STRING_UDA_COLLISION, uda);