diff --git a/demo/ff/include/stringlistmodel.hpp b/demo/ff/include/stringlistmodel.hpp index 69b2e45..ccd022b 100644 --- a/demo/ff/include/stringlistmodel.hpp +++ b/demo/ff/include/stringlistmodel.hpp @@ -6,11 +6,11 @@ * /______/ //______/ //_/ //_____/\ /_/ //_/ //_/ //_/ //_/ /|_/ / * \______\/ \______\/ \_\/ \_____\/ \_\/ \_\/ \_\/ \_\/ \_\/ \_\/ * - * Copyright (c) 2004 - 2008 Olof Naessén and Per Larsson + * Copyright (c) 2004 - 2008 Olof Naess�n and Per Larsson * * * Per Larsson a.k.a finalman - * Olof Naessén a.k.a jansem/yakslem + * Olof Naess�n a.k.a jansem/yakslem * * Visit: http://guichan.sourceforge.net * @@ -55,11 +55,16 @@ class StringListModel : public gcn::ListModel int getNumberOfElements() override { return mStrings.size(); } std::string getElementAt(int i) override { return mStrings.at(i); } - void add(std::string str) + void add(std::string str) override { mStrings.push_back(str); } + void clear() override + { + mStrings.clear(); + } + private: std::vector mStrings; };