diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-29 03:51:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-29 03:52:16 +0300 |
commit | 3bf4e26b1319295532bb4396cbd6406d85cbcae0 (patch) | |
tree | 80a4303b29aafa21683e90e45798283a482bf1d1 /src/net/manaserv | |
parent | 7f607a0f58a9eba53237955c06bf445c71d57b6c (diff) | |
download | plus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.gz plus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.bz2 plus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.xz plus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.zip |
Replace vectors with strings to short names.
Diffstat (limited to 'src/net/manaserv')
-rw-r--r-- | src/net/manaserv/attributes.cpp | 4 | ||||
-rw-r--r-- | src/net/manaserv/attributes.h | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/net/manaserv/attributes.cpp b/src/net/manaserv/attributes.cpp index 662032e29..9d1e159ff 100644 --- a/src/net/manaserv/attributes.cpp +++ b/src/net/manaserv/attributes.cpp @@ -66,7 +66,7 @@ namespace Attributes static TagMap tags; /** List of modifiable attribute names used at character's creation. */ - static std::vector<std::string> attributeLabels; + static StringVect attributeLabels; /** Characters creation points. */ static unsigned int creationPoints = 0; @@ -82,7 +82,7 @@ namespace Attributes unsigned int getAttributeMaximum() { return attributeMaximum; } - std::vector<std::string>& getLabels() + StringVect& getLabels() { return attributeLabels; } /** diff --git a/src/net/manaserv/attributes.h b/src/net/manaserv/attributes.h index ba5931b8c..5e0aab38a 100644 --- a/src/net/manaserv/attributes.h +++ b/src/net/manaserv/attributes.h @@ -22,8 +22,7 @@ #ifndef NET_MANASERV_ATTRIBUTES_H #define NET_MANASERV_ATTRIBUTES_H -#include <string> -#include <vector> +#include "utils/stringvector.h" namespace ManaServ { @@ -41,7 +40,7 @@ namespace Attributes /** * Returns the list of base attribute labels. */ - std::vector<std::string>& getLabels(); + StringVect& getLabels(); /** * Give back the corresponding playerinfo Id from the attribute id |