VideoBackendBase: Store video backends as unique_ptr

This commit is contained in:
Lioncash
2016-02-15 21:29:24 -05:00
parent 3b23eb24c4
commit 1d6ee140f0
6 changed files with 40 additions and 34 deletions

View File

@ -235,7 +235,7 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
choice_backend = new wxChoice(page_general, wxID_ANY);
RegisterControl(choice_backend, wxGetTranslation(backend_desc));
for (const VideoBackendBase* backend : g_available_video_backends)
for (const auto& backend : g_available_video_backends)
{
choice_backend->AppendString(wxGetTranslation(StrToWxStr(backend->GetDisplayName())));
}