Simplify overengineered code
This commit is contained in:
parent
1f43999f2a
commit
c669b7e4cd
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user