summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
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/setup_video.cpp
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/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 24d42c83d..a416b2027 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -54,8 +54,6 @@
#include <SDL.h>
#include <algorithm>
-#include <string>
-#include <vector>
#include "debug.h"
@@ -102,7 +100,7 @@ class ModeListModel : public gcn::ListModel
private:
void addCustomMode(std::string mode);
- std::vector<std::string> mVideoModes;
+ StringVect mVideoModes;
};
bool modeSorter(std::string mode1, std::string mode2);
@@ -166,8 +164,8 @@ ModeListModel::ModeListModel()
void ModeListModel::addCustomMode(std::string mode)
{
- std::vector<std::string>::const_iterator it = mVideoModes.begin();
- std::vector<std::string>::const_iterator it_end = mVideoModes.end();
+ StringVectCIter it = mVideoModes.begin();
+ StringVectCIter it_end = mVideoModes.end();
while (it != it_end)
{
if (*it == mode)