Salome HOME
Correction for hydro_test
[modules/hydro.git] / src / HYDRO_tests / test_HYDROGUI_ListModel.cxx
index f5b0ea490545d68e8470833e3bb8d10971c6341c..dc1bdc22a8b0d944670a8da51221f987bc874a5b 100644 (file)
@@ -22,9 +22,9 @@
 #include <HYDROData_Document.h>
 #include <HYDROGUI_ListModel.h>
 
-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; i<theObjCount; i++ )
   {
-    Handle_HYDROData_Entity anObj = GetDocument()->CreateObject( 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<int>() << 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
+}