Windows/Linux/whatever build fix.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5762 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2010-06-21 18:25:49 +00:00
parent d0f00cedff
commit 1b5b57bff3
3 changed files with 57 additions and 25 deletions

View File

@ -192,10 +192,8 @@ void ControlDialog::UpdateListContents()
{
control_lbox->Clear();
const std::vector<ControllerInterface::Device*>::const_iterator di =
std::find(m_plugin.controller_interface.Devices().begin(),
m_plugin.controller_interface.Devices().end(),
m_devq);
std::vector<ControllerInterface::Device*>::const_iterator di =
FindDevice(m_plugin.controller_interface.Devices(), m_devq);
if (m_plugin.controller_interface.Devices().end() != di)
{
@ -413,9 +411,8 @@ void ControlDialog::DetectControl(wxCommandEvent& event)
wxButton* const btn = (wxButton*)event.GetEventObject();
const wxString lbl = btn->GetLabel();
const std::vector<ControllerInterface::Device*>::const_iterator di =
std::find(m_plugin.controller_interface.Devices().begin(),
m_plugin.controller_interface.Devices().end(), m_devq);
std::vector<ControllerInterface::Device*>::const_iterator di =
FindDevice(m_plugin.controller_interface.Devices(), m_devq);
if (m_plugin.controller_interface.Devices().end() != di)
{
@ -440,8 +437,7 @@ void GamepadPage::DetectControl( wxCommandEvent& event )
// find device :/
const std::vector<ControllerInterface::Device*>::const_iterator di =
std::find(m_plugin.controller_interface.Devices().begin(),
m_plugin.controller_interface.Devices().end(), controller->default_device);
FindDevice(m_plugin.controller_interface.Devices(), controller->default_device);
if (m_plugin.controller_interface.Devices().end() != di)
{