diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-10-30 21:21:34 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-10-30 21:21:34 +0100 |
commit | bc931baa7a31857b971b9ac6543b2af20cdd1bf1 (patch) | |
tree | 76c221b1c6d8b7691fc643ed55a1cb48c0251600 /plugingui/listboxbasic.cc | |
parent | ca82069f0f522c9ef895fb856217ad5c58ae8089 (diff) |
Fix addItems bug.
Diffstat (limited to 'plugingui/listboxbasic.cc')
-rw-r--r-- | plugingui/listboxbasic.cc | 4 |
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); } |