summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2014-03-11 06:55:00 +0100
committerTillmann Karras <tilkax@gmail.com>2014-03-17 02:55:55 +0100
commit2fcaca0603f750bb68349e8bbd506b53dd30915b (patch)
tree8f90b4ee86386d9f54fb2d35f40c68f7e40cd335 /Source/Core/VideoBackends/Software
parent3fc9ca07892e123a8be5ee3d1f22693e896eb619 (diff)
More range-based loops and overrides
Diffstat (limited to 'Source/Core/VideoBackends/Software')
-rw-r--r--Source/Core/VideoBackends/Software/SWmain.cpp2
-rw-r--r--Source/Core/VideoBackends/Software/VideoBackend.h2
-rw-r--r--Source/Core/VideoBackends/Software/VideoConfigDialog.cpp9
3 files changed, 6 insertions, 7 deletions
diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp
index c0736c883a..e88d8d1441 100644
--- a/Source/Core/VideoBackends/Software/SWmain.cpp
+++ b/Source/Core/VideoBackends/Software/SWmain.cpp
@@ -56,7 +56,7 @@ static volatile bool fifoStateRun = false;
static volatile bool emuRunningState = false;
static std::mutex m_csSWVidOccupied;
-std::string VideoSoftware::GetName()
+std::string VideoSoftware::GetName() const
{
return _trans("Software Renderer");
}
diff --git a/Source/Core/VideoBackends/Software/VideoBackend.h b/Source/Core/VideoBackends/Software/VideoBackend.h
index a9de97d816..50fa855f4d 100644
--- a/Source/Core/VideoBackends/Software/VideoBackend.h
+++ b/Source/Core/VideoBackends/Software/VideoBackend.h
@@ -13,7 +13,7 @@ class VideoSoftware : public VideoBackend
bool Initialize(void *&) override;
void Shutdown() override;
- std::string GetName() override;
+ std::string GetName() const override;
void EmuStateChange(EMUSTATE_CHANGE newState) override;
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()));