]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
porting : eliminate comp. errors
authorisn <isn@opencascade.com>
Mon, 12 Dec 2016 11:44:38 +0000 (14:44 +0300)
committerisn <isn@opencascade.com>
Mon, 12 Dec 2016 11:44:38 +0000 (14:44 +0300)
src/HYDROData/HYDROData_DTM.cxx
src/HYDRO_tests/test_HYDROData_DTM.cxx

index d5bc74800d12b0255f4e4bd79f5018205a8fc4d8..4b0a1392cc70a9c3982a6608607818f954833d50 100644 (file)
@@ -631,7 +631,7 @@ bool IsCooriented( const Handle(HYDROData_Profile)& theProfile1,
   GCE2d_MakeSegment s2(rp1, rp2);
 
   Geom2dAPI_InterCurveCurve inter;
-  inter.Init(s1, s2);
+  inter.Init(s1.Value(), s2.Value());
   if (inter.NbPoints() == 0)
     return true;
   else
index fb60fbae955106161263e3661e0cf8a4922a4d84..74bf64ba87b192f93add72abc00e2dd9186b3765 100644 (file)
@@ -627,13 +627,13 @@ void test_HYDROData_DTM::test_classifier_1()
 {
   TCollection_AsciiString fname = REF_DATA_PATH.toLatin1().data();
   fname += "/pb_1066.cbf";
-  CPPUNIT_ASSERT_EQUAL( DocError_OK, HYDROData_Document::Load( fname.ToCString(), 1 ) );
+  CPPUNIT_ASSERT_EQUAL( (int)DocError_OK, (int)HYDROData_Document::Load( fname.ToCString(), 1 ) );
 
   Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
   
   Handle(HYDROData_CalculationCase) aCase = 
     Handle(HYDROData_CalculationCase)::DownCast( aDoc->FindObjectByName( "Case_1" ) );
-  CPPUNIT_ASSERT_EQUAL( Standard_False, aCase.IsNull() ); 
+  CPPUNIT_ASSERT_EQUAL( false, aCase.IsNull() ); 
   std::vector<gp_XY> points;
   points.push_back( gp_XY( 43.4842, 3.33176  ) );
   points.push_back( gp_XY( -125.777, 2.24728 ) );