Skip to content

Commit

Permalink
Fix demo stringlistmodel
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Nov 10, 2024
1 parent b16b873 commit 8973083
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions demo/ff/include/stringlistmodel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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<std::string> mStrings;
};
Expand Down

0 comments on commit 8973083

Please sign in to comment.