]> OCCT Git - occt.git/commitdiff
Coding - Resolving C6319 warning
authordpasukhi <dpasukhi@opencascade.com>
Mon, 9 Sep 2024 19:14:00 +0000 (19:14 +0000)
committerdpasukhi <dpasukhi@opencascade.com>
Sat, 14 Sep 2024 20:26:41 +0000 (20:26 +0000)
Use of the comma-operator in a tested expression
  causes the left argument to be ignored when it has no side-effects.

src/TopOpeBRep/TopOpeBRep_ProcessSectionEdges.cxx

index bbec44f5793259f4110d1e9905816843acb2df63..d066436fbfd981ccf8cc3bd8f61b08558351438e 100644 (file)
@@ -312,7 +312,7 @@ void TopOpeBRep_FacesFiller::ProcessSectionEdges()
   
   // ajout des aretes de section dans la DS de shape,connaissant leur rank
   for (itLES.Initialize(LES),itLOI.Initialize(LOI);
-       itLES.More(),itLOI.More();
+       itLES.More() && itLOI.More();
        itLES.Next(),itLOI.Next()) {
     const TopoDS_Shape& E1 = itLES.Value();
     Standard_Integer rE1 = itLOI.Value();