Merge pull request #3470 from Dmitry-Me:simplifyOverengineeredCode

This commit is contained in:
Vadim Pisarevsky 2014-12-02 09:00:59 +00:00
commit bf5ff7fcd0

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 ();