提交 c669b7e4 编写于 作者: D Dmitry-Me

Simplify overengineered code

上级 1f43999f
......@@ -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 ();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册