mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
Column: Uses const loop iterators
This commit is contained in:
parent
4f7805d005
commit
11b7d2edbf
1 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ void Column::uda (std::map <std::string, Column*>& all)
|
|||
// For each UDA, instantiate and initialize ColumnUDA().
|
||||
std::set <std::string> 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 <std::string, Column*>& all)
|
|||
}
|
||||
}
|
||||
|
||||
for (auto& uda : udas)
|
||||
for (const auto& uda : udas)
|
||||
{
|
||||
if (all.find (uda) != all.end ())
|
||||
throw format (STRING_UDA_COLLISION, uda);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue