modernize C++: use bool literals
This commit is contained in:
@@ -614,7 +614,7 @@ PyObject* DocumentPy::getObject(PyObject *args)
|
||||
PyErr_SetString(PyExc_TypeError, "a string or integer is required");
|
||||
return nullptr;
|
||||
}
|
||||
while (0);
|
||||
while (false);
|
||||
|
||||
if (obj)
|
||||
return obj->getPyObject();
|
||||
|
||||
@@ -2806,7 +2806,7 @@ void VariableExpression::addComponent(Component *c) {
|
||||
var << ObjectIdentifier::RangeComponent(l1,l2,l3);
|
||||
return;
|
||||
}
|
||||
}while(0);
|
||||
}while(false);
|
||||
|
||||
Expression::addComponent(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user