summaryrefslogtreecommitdiff
path: root/src/gui/widgets/namesmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/namesmodel.h')
-rw-r--r--src/gui/widgets/namesmodel.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/namesmodel.h b/src/gui/widgets/namesmodel.h
index 76f668f10..f70dd2571 100644
--- a/src/gui/widgets/namesmodel.h
+++ b/src/gui/widgets/namesmodel.h
@@ -43,12 +43,15 @@ class NamesModel : public gcn::ListModel
StringVect &getNames() A_WARN_UNUSED
{ return mNames; }
- size_t size() A_WARN_UNUSED
+ size_t size() const A_WARN_UNUSED
{ return mNames.size(); }
void clear()
{ mNames.clear(); }
+ void add(const std::string &str)
+ { mNames.push_back(str); }
+
void fillFromArray(const char *const *const arr, std::size_t size);
protected: