summaryrefslogtreecommitdiff
path: root/plugingui/listboxbasic.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-10-28 22:15:13 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-10-28 22:15:13 +0100
commitca82069f0f522c9ef895fb856217ad5c58ae8089 (patch)
treea4f7d9de557ee5357c8855a9d68886ff687eb214 /plugingui/listboxbasic.cc
parenta05a3174d05f4f0021ab76fd8ec01d585904159f (diff)
Deploy range based for loops.
Diffstat (limited to 'plugingui/listboxbasic.cc')
-rw-r--r--plugingui/listboxbasic.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/listboxbasic.cc b/plugingui/listboxbasic.cc
index 0bfde4c..d774930 100644
--- a/plugingui/listboxbasic.cc
+++ b/plugingui/listboxbasic.cc
@@ -74,11 +74,11 @@ void ListBoxBasic::addItem(std::string name, std::string value)
addItems(items);
}
-void ListBoxBasic::addItems(std::vector<ListBoxBasic::Item> &is)
+void ListBoxBasic::addItems(std::vector<ListBoxBasic::Item> &items)
{
- for(auto i = is.begin(); i != is.end(); ++i)
+ for(auto item : items)
{
- items.push_back(*i);
+ items.push_back(item);
}
if(selected == -1)