Salome HOME
Import profiles protection (Bug #203).
[modules/hydro.git] / src / HYDROData / test_HYDROData_Iterator.cxx
index cb43a4b1665fedbf891b5f62151906a17b00236c..3cd96f0a45ffbb07e6e2b53e408fa2e4e62384b3 100644 (file)
@@ -3,15 +3,17 @@
 #include <HYDROData_Document.h>
 #include <HYDROData_Iterator.h>
 
+#include <QString>
+
 void test_HYDROData_Iterator::testOneKind()
 {
   static const QString aName1("test_name1");
   static const QString aName2("test_name2");
   Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
 
-  Handle(HYDROData_Object) anObj = aDoc->CreateObject(KIND_IMAGE); // image object
+  Handle(HYDROData_Entity) anObj = aDoc->CreateObject(KIND_IMAGE); // image object
   anObj->SetName(aName1);
-  // first HYDROData_Object must be destroyed because there is no hander pointer naymore
+  // first HYDROData_Entity must be destroyed because there is no hander pointer naymore
   anObj = aDoc->CreateObject(KIND_IMAGE); // second image object
   anObj->SetName(aName2);
 
@@ -37,9 +39,9 @@ void test_HYDROData_Iterator::testAllKinds()
   static const QString aName2("test_name2");
   Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
 
-  Handle(HYDROData_Object) anObj = aDoc->CreateObject(KIND_IMAGE); // image object
+  Handle(HYDROData_Entity) anObj = aDoc->CreateObject(KIND_IMAGE); // image object
   anObj->SetName(aName1);
-  // first HYDROData_Object must be destroyed because there is no hander pointer naymore
+  // first HYDROData_Entity must be destroyed because there is no hander pointer naymore
   anObj = aDoc->CreateObject(KIND_IMAGE); // second image object
   anObj->SetName(aName2);