Salome HOME
bos #18900 [CEA] SHAPER compilation issue PartSet_Validators.cpp
authorvsr <vsr@opencascade.com>
Tue, 24 Mar 2020 08:37:24 +0000 (11:37 +0300)
committervsr <vsr@opencascade.com>
Tue, 24 Mar 2020 08:38:17 +0000 (11:38 +0300)
src/PartSet/PartSet_Validators.cpp

index 979ef341c75b3ee54ea4c9dccf02de5995664d4d..2f4d1a82bdc6755f27c96425a30d82364f7beeb5 100644 (file)
@@ -75,7 +75,7 @@ int shapesNbPoints(const ModuleBase_ISelection* theSelection)
   return aCount;
 }
 
-typedef std::unordered_map<GeomAbs_CurveType, int> ShapeQuantity;
+typedef std::unordered_map<int, int> ShapeQuantity;
 
 int shapesNbEdges(const ModuleBase_ISelection* theSelection, ShapeQuantity& theEdges)
 {
@@ -90,7 +90,7 @@ int shapesNbEdges(const ModuleBase_ISelection* theSelection, ShapeQuantity& theE
         Standard_Real aStart, aEnd;
         Handle(Geom_Curve) aCurve = BRep_Tool::Curve(aEdge, aStart, aEnd);
         GeomAdaptor_Curve aAdaptor(aCurve);
-        theEdges[aAdaptor.GetType()] += 1;
+        theEdges[(int)aAdaptor.GetType()] += 1;
         aCount++;
       }
     }