From: rnv Date: Tue, 26 Jul 2016 12:35:49 +0000 (+0300) Subject: Fix compilation error. X-Git-Tag: V8_1_0b1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7af8c61b3dbf3151658ca1e3a0be758b1989eff5;p=plugins%2Fblsurfplugin.git Fix compilation error. --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx index 07daee8..90b3420 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx @@ -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); } }