]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_ResultField.cpp
Salome HOME
Improve coverage for ModelAPI and Config packages
[modules/shaper.git] / src / Model / Model_ResultField.cpp
index 985b66f2fccf03f200335e8af2073ea8cf48559f..11498517665be5e9f5da91e0c22ac16a134c10e7 100644 (file)
@@ -43,6 +43,7 @@ Model_ResultField::~Model_ResultField()
   }
 }
 
+// LCOV_EXCL_START
 void Model_ResultField::colorConfigInfo(std::string& theSection, std::string& theName,
                                        std::string& theDefault)
 {
@@ -50,6 +51,7 @@ void Model_ResultField::colorConfigInfo(std::string& theSection, std::string& th
   theName = "result_field_color";
   theDefault = DEFAULT_COLOR();
 }
+// LCOV_EXCL_STOP
 
 std::shared_ptr<GeomAPI_Shape> Model_ResultField::shape()
 {
@@ -109,7 +111,7 @@ void Model_ResultField::updateSteps()
       mySteps.pop_back();
     }
     while(mySteps.size() < aNbSteps) {
-      mySteps.push_back(new Model_ResultField::Model_FieldStep(this, mySteps.size()));
+      mySteps.push_back(new Model_ResultField::Model_FieldStep(this, int(mySteps.size())));
     }
   }
 }
@@ -140,7 +142,8 @@ std::string Model_ResultField::textLine(int theLine) const
   return "";
 }
 
-
+// used by GUI only
+// LCOV_EXCL_START
 ModelAPI_ResultField::ModelAPI_FieldStep* Model_ResultField::step(int theId) const
 {
   if (theId < mySteps.size()) {
@@ -148,3 +151,4 @@ ModelAPI_ResultField::ModelAPI_FieldStep* Model_ResultField::step(int theId) con
   }
   return NULL;
 }
+// LCOV_EXCL_STOP