summaryrefslogtreecommitdiff
path: root/plugingui/listboxbasic.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-10-30 21:21:34 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-10-30 21:21:34 +0100
commitbc931baa7a31857b971b9ac6543b2af20cdd1bf1 (patch)
tree76c221b1c6d8b7691fc643ed55a1cb48c0251600 /plugingui/listboxbasic.cc
parentca82069f0f522c9ef895fb856217ad5c58ae8089 (diff)
Fix addItems bug.
Diffstat (limited to 'plugingui/listboxbasic.cc')
-rw-r--r--plugingui/listboxbasic.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/listboxbasic.cc b/plugingui/listboxbasic.cc
index d774930..bf75684 100644
--- a/plugingui/listboxbasic.cc
+++ b/plugingui/listboxbasic.cc
@@ -74,9 +74,9 @@ void ListBoxBasic::addItem(std::string name, std::string value)
addItems(items);
}
-void ListBoxBasic::addItems(std::vector<ListBoxBasic::Item> &items)
+void ListBoxBasic::addItems(std::vector<ListBoxBasic::Item> &newItems)
{
- for(auto item : items)
+ for(auto& item : newItems)
{
items.push_back(item);
}