]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.cxx
Some fixes for wxString vs std::string pb.
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxVtkBaseView_SceneManager.cxx
index 6f0ff37384dca4a28095563667b012464d18d99f..c765d330a68f4fcaac7da7258c8ca735f394aac0 100644 (file)
@@ -332,7 +332,7 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
                        setControlActiveStateOf( _workingGroup, false );
                        _workingGroup->clear();
                }
-        std::map <std::string, ContourWrap_ViewControl *>::iterator iter = NULL; 
+        std::map <std::string, ContourWrap_ViewControl *>::iterator iter; //  = NULL; 
 
 //EED Borrame
 // FILE *ff = fopen("c:/temp/wxVtkBaseView_SceneManagerStadistics.txt","a+");
@@ -1092,7 +1092,8 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
        {
                FILE *ff = fopen("c:/temp/wxVtkBaseView_SceneManagerStadistics.txt","a+");
                long int start = clock();
-               double sg = (double)(start) / (double)CLK_TCK;
+               //double sg = (double)(start) / (double)CLK_TCK;  // CLK_TCK not ANSI C.
+               double sg = (double)(start) / (double)CLOCKS_PER_SEC;
                int tmpPx,tmpPy;
                wxVTKRenderWindowInteractor *wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
                wxVTKiren->GetEventPosition( tmpPx , tmpPy );