mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 22:00:25 +08:00
Merge pull request #3470 from Dmitry-Me:simplifyOverengineeredCode
This commit is contained in:
commit
bf5ff7fcd0
@ -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