]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authorstv <stv@opencascade.com>
Mon, 30 May 2005 09:11:24 +0000 (09:11 +0000)
committerstv <stv@opencascade.com>
Mon, 30 May 2005 09:11:24 +0000 (09:11 +0000)
src/Event/SALOME_Event.cxx
src/SalomeApp/SalomeApp_Study.cxx
src/VTKViewer/VTKViewer_ConvexTool.cxx

index 326dd074c9f6b33391e470752d44ebe01c3ed7d1..84928f6232cf5795667c1029dca4aa09a0ed7ab5 100755 (executable)
 #include <qapplication.h>
 #include <qthread.h>
 
-#ifdef _DEBUG_
-static int MYDEBUG = 0;
-#else
-static int MYDEBUG = 0;
-#endif
-
 // asv 21.02.05 : introducing multi-platform approach of thread comparison
 // on Unix using pthread_t type for storing ThreadId
 // on Win32 using integer type for storing ThreadId
@@ -47,11 +41,14 @@ static int MYDEBUG = 0;
 // "...Do not allow your program to rely on the internal structure or size of the pthread_t..."
 
 #ifdef WIN32
-  #include <windows.h>
-  static DWORD myThread;
+#include <windows.h>
+
+static DWORD myThread;
 #else
-  #include <qthread.h>
-  static pthread_t myThread;
+#include <qthread.h>
+#include <pthread.h>
+
+static pthread_t myThread;
 #endif
 
 void SALOME_Event::GetSessionThread(){
index 7b3be65494e161eef4b9529f70aa57df69ec4f94..c7dff3b6885e6a9968b98af391328621e9f6e95b 100644 (file)
@@ -258,7 +258,7 @@ void SalomeApp_Study::dataModelInserted (const CAM_DataModel* dm)
         aComp = aBuilder->NewComponent(dm->module()->name());
 
         // Set default engine IOR
-        aBuilder->DefineComponentInstance(aComp, SalomeApp_Application::defaultEngineIOR());
+        aBuilder->DefineComponentInstance(aComp, SalomeApp_Application::defaultEngineIOR().latin1());
       }
     }
   }
index 5d0736baa7df4941338088bd8b315d6303323236..80e7fee5e19f661f04a76ce2b997b0628106cf32 100644 (file)
@@ -17,6 +17,7 @@
 #include <vtkMath.h>
 
 #include <set>
+#include <iterator>
 #include <algorithm>
 
 static float FACE_TOLERANCE = 0;
@@ -379,7 +380,6 @@ void GetPolygonalFaces(vtkUnstructuredGrid* theGrid,int cellId,TCellArray &outpu
        
       
       TPTOIDS new_face2faces; // which connected and in one plane
-      int count=0;
       
       TPTOIDS::const_iterator aF2FIter = face2face.begin();
       for(;aF2FIter!=face2face.end();aF2FIter++){