X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDRO_tests%2Ftest_HYDROGUI_ListModel.cxx;h=dc1bdc22a8b0d944670a8da51221f987bc874a5b;hb=eac08495379067b7417f2856e174b4f1ae80e538;hp=f5b0ea490545d68e8470833e3bb8d10971c6341c;hpb=e744ba34fd38d6744d11b54cd15b6f86350695b2;p=modules%2Fhydro.git diff --git a/src/HYDRO_tests/test_HYDROGUI_ListModel.cxx b/src/HYDRO_tests/test_HYDROGUI_ListModel.cxx index f5b0ea49..dc1bdc22 100644 --- a/src/HYDRO_tests/test_HYDROGUI_ListModel.cxx +++ b/src/HYDRO_tests/test_HYDROGUI_ListModel.cxx @@ -22,9 +22,9 @@ #include #include -Handle_HYDROData_Document GetDocument() +Handle(HYDROData_Document) GetDocument() { - return HYDROData_Document::Document( 0 ); + return HYDROData_Document::Document(); } HYDROGUI_ListModel::Object2VisibleList CreateTestObjects( int theObjCount ) @@ -33,7 +33,7 @@ HYDROGUI_ListModel::Object2VisibleList CreateTestObjects( int theObjCount ) for( int i=0; iCreateObject( KIND_IMMERSIBLE_ZONE ); + Handle(HYDROData_Entity) anObj = GetDocument()->CreateObject( KIND_IMMERSIBLE_ZONE ); std::string aName = " "; aName[0] = 'A' + i; @@ -424,4 +424,4 @@ void test_HYDROGUI_ListModel::testDragAndDrop() aRes = aModel->move( QList() << 0 << 2 << 4 << 5 << 7, aDnD, false, 3 ); CPPUNIT_ASSERT_EQUAL( true, aRes ); CPPUNIT_ASSERT_EQUAL( std::string( "F, *A, *G, *C, H, *E, D, B" ), GetObjects( aModel ) ); -} \ No newline at end of file +}