Simplify overengineered code

This commit is contained in:
Dmitry-Me 2014-12-01 17:58:06 +03:00
parent 1f43999f2a
commit c669b7e4cd

View File

@ -393,7 +393,8 @@ CvCaptureCAM_Giganetix::open( int index )
for (int i = 0; i < (int) DevicesList.size() && !b_ret; i++)
{
if((b_ret = i == index))
b_ret = (i == index);
if(b_ret)
{
m_device = DevicesList[i];
b_ret = m_device->Connect ();