]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Fix compilation error.
authorrnv <rnv@opencascade.com>
Tue, 26 Jul 2016 12:35:49 +0000 (15:35 +0300)
committerrnv <rnv@opencascade.com>
Tue, 26 Jul 2016 12:35:49 +0000 (15:35 +0300)
src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx

index 07daee8160cdc5c6e626fd969d1e74a4b62ba6e8..90b34201701a8ae5f58f4a61b3002dbfc71094cc 100644 (file)
@@ -2728,7 +2728,7 @@ void BLSURFPlugin_Hypothesis_i::CheckShapeTypes(GEOM::GEOM_Object_ptr shape, std
   if (!ok){
     std::stringstream msg;
     msg << "shape shape type is not in" << typesTxt.str();
-    MESSAGE(msg);
+    MESSAGE(msg.str());
     THROW_SALOME_CORBA_EXCEPTION(msg.str().c_str(), SALOME::BAD_PARAM);
   }
 }
@@ -2739,7 +2739,7 @@ void BLSURFPlugin_Hypothesis_i::CheckShapeType(GEOM::GEOM_Object_ptr shape, GEOM
   if (shape->GetShapeType() != theShapeType) {
     std::stringstream msg;
     msg << "shape shape type is not " << ShapeTypeToString(theShapeType);
-    MESSAGE(msg);
+    MESSAGE(msg.str());
     THROW_SALOME_CORBA_EXCEPTION(msg.str().c_str(), SALOME::BAD_PARAM);
   }
 }