summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/VideoConfigDialog.cpp
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2014-03-17 17:43:20 +1300
committerMatthew Parlane <parlane@gmail.com>2014-03-17 17:43:20 +1300
commit6445e02d53a9951c845c2fed23d825109f9b6d79 (patch)
treede14a92b7e7f144c328739eb5339ef9436d49dd0 /Source/Core/VideoBackends/Software/VideoConfigDialog.cpp
parentd3e9702cecc5b7f9078ef3448f7d513226ebeedd (diff)
parent46becfc06b3a8b91d0500a8ee226c85b4450dddf (diff)
Merge pull request #159 from Tilka/misc
Cleanup stuff
Diffstat (limited to 'Source/Core/VideoBackends/Software/VideoConfigDialog.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/VideoConfigDialog.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Core/VideoBackends/Software/VideoConfigDialog.cpp b/Source/Core/VideoBackends/Software/VideoConfigDialog.cpp
index d730efd6fe..fc205a3965 100644
--- a/Source/Core/VideoBackends/Software/VideoConfigDialog.cpp
+++ b/Source/Core/VideoBackends/Software/VideoConfigDialog.cpp
@@ -47,11 +47,10 @@ VideoConfigDialog::VideoConfigDialog(wxWindow* parent, const std::string& title,
wxStaticText* const label_backend = new wxStaticText(page_general, wxID_ANY, _("Backend:"));
wxChoice* const choice_backend = new wxChoice(page_general, wxID_ANY, wxDefaultPosition);
- std::vector<VideoBackend*>::const_iterator
- it = g_available_video_backends.begin(),
- itend = g_available_video_backends.end();
- for (; it != itend; ++it)
- choice_backend->AppendString(StrToWxStr((*it)->GetDisplayName()));
+ for (const VideoBackend* backend : g_available_video_backends)
+ {
+ choice_backend->AppendString(StrToWxStr(backend->GetDisplayName()));
+ }
// TODO: How to get the translated plugin name?
choice_backend->SetStringSelection(StrToWxStr(g_video_backend->GetName()));