// Get all arguments
GEOM::ListOfGBO_var anOpArgsList = theObject->GetDependency();
- Standard_Integer nbArgsActual = anOpArgsList->length();
+ Standard_Integer nbOpArgs = anOpArgsList->length();
+ Standard_Integer nbArgsActual = nbOpArgs;
// If anOpArgsList list is empty, nothing to do
if (nbArgsActual == 0)
if (nbArgsActual < 1)
return aParts._retn();
- if (theInheritFirstArg || (nbArgsActual == 1)) {
+ if (theInheritFirstArg || (nbOpArgs == 1)) {
// Do not publish argument's reflection,
// but only reconstruct its published sub-shapes