From bc931baa7a31857b971b9ac6543b2af20cdd1bf1 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 30 Oct 2015 21:21:34 +0100 Subject: Fix addItems bug. --- plugingui/listboxbasic.cc | 4 ++-- 1 file 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 &items) +void ListBoxBasic::addItems(std::vector &newItems) { - for(auto item : items) + for(auto& item : newItems) { items.push_back(item); } -- cgit v1.2.3