Salome HOME
refs #1330: basic implementation of the not zoomable polyline arrows
[modules/hydro.git] / src / HYDRO_tests / test_HYDROGUI_ListModel.cxx
index f5b0ea490545d68e8470833e3bb8d10971c6341c..2290ed7e174f96abe8cd3b6799b56b4c80072498 100644 (file)
@@ -22,7 +22,7 @@
 #include <HYDROData_Document.h>
 #include <HYDROGUI_ListModel.h>
 
-Handle_HYDROData_Document GetDocument()
+Handle(HYDROData_Document) GetDocument()
 {
   return HYDROData_Document::Document( 0 );
 }
@@ -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
+}