]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelHighAPI/ModelHighAPI_Selection.cpp
Salome HOME
Get rid of compilation warnings. Part I.
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Selection.cpp
index cb74050bce40a957fa16dba8abc967a06f830736..7cc4cf0e402e7645b6253f499827d60c28126632 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -102,6 +102,8 @@ void ModelHighAPI_Selection::fillAttribute(
       theAttribute->selectSubShape(
         myWeakNamingPair.first, myWeakNamingPair.second.first, myWeakNamingPair.second.second);
       break;
+    case VT_Filtering:
+      break; // do nothing [to avoid compilation warning]
   }
 
   if (theAttribute->isInvalid()) {
@@ -133,6 +135,9 @@ void ModelHighAPI_Selection::appendToList(
       theAttribute->append(
         myWeakNamingPair.first, myWeakNamingPair.second.first, myWeakNamingPair.second.second);
       return;
+    case VT_Filtering:
+      theAttribute->setFilters(myFilterFeature);
+      return;
   }
 }
 
@@ -175,6 +180,8 @@ std::string ModelHighAPI_Selection::shapeType() const
                                                myResultSubShapePair.first->shape()->shapeTypeStr();
   case VT_TypeSubShapeNamePair: return myTypeSubShapeNamePair.first;
   case VT_TypeInnerPointPair: return myTypeInnerPointPair.first;
+  default:
+    break; // do nothing [to avoid compilation warning]
   }
 
   return "SHAPE";