Salome HOME
Sorting alphabetically.
[modules/hydro.git] / src / HYDROData / HYDROData_Calculation.cxx
index f11513cc9b4f5965f2722919ca708a4f15312019..9514bcbd5945ca2f2df3295d0979e1f327c3b410 100644 (file)
@@ -60,10 +60,10 @@ QStringList HYDROData_Calculation::DumpToPython( MapOfTreatedObjects& theTreated
   anIter.Init( aZones );
   for ( ; anIter.More(); anIter.Next() )
   {
-    Handle(HYDROData_Zone) aSplittedZone =
-      Handle(HYDROData_Zone)::DownCast( anIter.Value() );
-    if ( !aSplittedZone.IsNull() )
-      setPythonReferenceObject( theTreatedObjects, aResList, aSplittedZone, "AddRegion" );
+    Handle(HYDROData_Region) aRegion =
+      Handle(HYDROData_Region)::DownCast( anIter.Value() );
+    if ( !aRegion.IsNull() )
+      setPythonReferenceObject( theTreatedObjects, aResList, aRegion, "AddRegion" );
   }
 
   return aResList;