summaryrefslogtreecommitdiff
path: root/src/gui/widgets/namesmodel.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-29 03:51:37 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-29 03:52:16 +0300
commit3bf4e26b1319295532bb4396cbd6406d85cbcae0 (patch)
tree80a4303b29aafa21683e90e45798283a482bf1d1 /src/gui/widgets/namesmodel.h
parent7f607a0f58a9eba53237955c06bf445c71d57b6c (diff)
downloadmv-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.gz
mv-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.bz2
mv-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.xz
mv-3bf4e26b1319295532bb4396cbd6406d85cbcae0.zip
Replace vectors with strings to short names.
Diffstat (limited to 'src/gui/widgets/namesmodel.h')
-rw-r--r--src/gui/widgets/namesmodel.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/widgets/namesmodel.h b/src/gui/widgets/namesmodel.h
index dc694fc46..e1dbf0a89 100644
--- a/src/gui/widgets/namesmodel.h
+++ b/src/gui/widgets/namesmodel.h
@@ -21,12 +21,10 @@
#ifndef GUI_WIDGETS_NAMESMODEL_H
#define GUI_WIDGETS_NAMESMODEL_H
-//#include "guichanfwd.h"
+#include "utils/stringvector.h"
#include <guichan/listmodel.hpp>
-#include <vector>
-
class NamesModel : public gcn::ListModel
{
public:
@@ -38,14 +36,14 @@ class NamesModel : public gcn::ListModel
virtual std::string getElementAt(int i);
- std::vector<std::string> &getNames()
+ StringVect &getNames()
{ return mNames; }
size_t size()
{ return mNames.size(); }
protected:
- std::vector<std::string> mNames;
+ StringVect mNames;
};
#endif