From 9f951ebc44c09ed0aba75cbff6169f8aa84bc5c4 Mon Sep 17 00:00:00 2001 From: apn Date: Fri, 23 Dec 2016 10:10:55 +0300 Subject: [PATCH] Warnings on vc14 were eliminated --- src/XDEDRAW/XDEDRAW_GDTs.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/XDEDRAW/XDEDRAW_GDTs.cxx b/src/XDEDRAW/XDEDRAW_GDTs.cxx index 3a2649866b..ebd524042e 100644 --- a/src/XDEDRAW/XDEDRAW_GDTs.cxx +++ b/src/XDEDRAW/XDEDRAW_GDTs.cxx @@ -433,9 +433,9 @@ static Standard_Integer DumpNbDGTs (Draw_Interpretor& di, Standard_Integer argc, } else if (anObject->GetModifiers().Length() > 0) { Standard_Boolean isHasModif = Standard_False; - for (Standard_Integer i = 1; i <= anObject->GetModifiers().Length(); i++) - if (anObject->GetModifiers().Value(i) != XCAFDimTolObjects_GeomToleranceModif_All_Around && - anObject->GetModifiers().Value(i) != XCAFDimTolObjects_GeomToleranceModif_All_Over) { + for (Standard_Integer j = 1; j <= anObject->GetModifiers().Length(); j++) + if (anObject->GetModifiers().Value(j) != XCAFDimTolObjects_GeomToleranceModif_All_Around && + anObject->GetModifiers().Value(j) != XCAFDimTolObjects_GeomToleranceModif_All_Over) { isHasModif = Standard_True; break; }