]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
patch for correct compilation on Linux
authorasl <asl@opencascade.com>
Mon, 22 Jun 2015 13:41:44 +0000 (16:41 +0300)
committerasl <asl@opencascade.com>
Mon, 22 Jun 2015 13:41:44 +0000 (16:41 +0300)
src/HYDROData/HYDROData_CalculationCase.cxx
src/HYDROData/HYDROData_SinusX.cxx
src/HYDROData/HYDROData_SinusX.h
src/HYDROGUI/HYDROGUI_ExportSinusXDlg.cxx
src/HYDROGUI/HYDROGUI_Tool.cxx

index 1bd1057d6dd42ccc548a86640b9901e5ff4e2f9b..00474d50b9317d3e9bcbc7ad82a71fc0664d86aa 100644 (file)
@@ -690,7 +690,8 @@ void HYDROData_CalculationCase::UpdateRegionsOrder()
     return;
 
   HYDROData_SequenceOfObjects aRegions = GetRegions( false );
-  aRegions.Append( GetRegions( true ) );
+  HYDROData_SequenceOfObjects aRegionsLC = GetRegions( true );
+  aRegions.Append( aRegionsLC );
 
   HYDROData_SequenceOfObjects::Iterator anIter( aRegions );
   for ( ; anIter.More(); anIter.Next() )
index c24905b1bd55500d8d2dc41e522d1e349d52f1a5..86a5b1518e092ef95e35b6753b4cd1037093f376 100644 (file)
@@ -304,7 +304,7 @@ bool HYDROData_SinusX::Parse(QFile& theFile)
 
 }
 
-bool HYDROData_SinusX::Export(const QString& theFilePath, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
+bool HYDROData_SinusX::Export(const QString& theFilePath, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
 {
   if ( theFilePath.isEmpty() )
   { 
@@ -330,7 +330,7 @@ bool HYDROData_SinusX::Export(const QString& theFilePath, NCollection_Sequence<H
 
 }
 
-void HYDROData_SinusX::HydroToSX(QFile& theFile, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
+void HYDROData_SinusX::HydroToSX(QFile& theFile, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
 {
   QTextStream aTextStream(&theFile);
   aTextStream << "C  Generated by HYDRO Module\n";
index 3da6ff89098737fdd45b9684398610131428619a..08c77b20ea1c194877aceb050f80c6db1dcce928 100644 (file)
@@ -56,14 +56,14 @@ public:
   HYDROData_SinusX( );
   virtual ~HYDROData_SinusX();
   bool Import (const QString& theFilePath, Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
-  bool Export(const QString& theFilePath, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+  bool Export(const QString& theFilePath, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
   
 private:
   void SXToHydro(Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
   bool Parse( QFile& theFile );
   void CollectExistingNames(Handle_HYDROData_Document theDocument);
   QString GetName(const QString& theName);
-  void HydroToSX(QFile& theFile, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+  void HydroToSX( QFile& theFile, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
 
 private:
 
index f7fb6084a9cf70a39b41c5f4a7eff07e2e63d649..f277b754ce5dfcdf14970f3b5e8a8180ad0e1873 100644 (file)
@@ -26,7 +26,7 @@
 #include "HYDROGUI_Module.h"
 #include <CAM_Application.h>
 #include <SUIT_Desktop.h>
-#include <QListWidget.h>
+#include <QListWidget>
 #include <HYDROGUI_ObjListBox.h>
 
 
index c4e6b90b58cd43a80c3ec6fd3cc517c42edf1da4..414582542baac6aefa2f314055c640bc4a19413e 100644 (file)
@@ -185,7 +185,7 @@ QString HYDROGUI_Tool::GetTempDir( const bool theToCreate )
 #ifdef WNT
     tmpdir = "C:\\";
 #else
-    tmpdir = "/tmp";
+    tmpdir = strdup( "/tmp" );
 #endif
   }
   aRes = tmpdir;