From 7c362c70413927acf6fbd9e7d64edb9ff475ef3f Mon Sep 17 00:00:00 2001 From: ana Date: Wed, 14 Oct 2015 16:38:35 +0300 Subject: [PATCH] Windows compatibility --- src/SMESHGUI/SMESHGUI_PreVisualObj.cxx | 2 +- src/SMESHGUI/SMESHGUI_SewingDlg.cxx | 2 +- src/SMESH_I/SMESH_2smeshpy.cxx | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx b/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx index 3e05490da..8107a117b 100644 --- a/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx +++ b/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx @@ -59,7 +59,7 @@ int SMESHGUI_PreVisualObj::GetElemDimension( const int theObjId ) int SMESHGUI_PreVisualObj::GetNbEntities( const SMDSAbs_ElementType theType ) const { - myMesh->GetMeshInfo().NbElements( theType ); + return myMesh->GetMeshInfo().NbElements( theType ); } SMESH::SMESH_Mesh_ptr SMESHGUI_PreVisualObj::GetMeshServer() diff --git a/src/SMESHGUI/SMESHGUI_SewingDlg.cxx b/src/SMESHGUI/SMESHGUI_SewingDlg.cxx index 3753dff1d..4c8fd2580 100644 --- a/src/SMESHGUI/SMESHGUI_SewingDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_SewingDlg.cxx @@ -907,7 +907,7 @@ void SMESHGUI_SewingDlg::onDetectClicked() QListWidgetItem * item = new QListWidgetItem( icon, groupText, ListCoincident ); item->setData( GROUP_COLOR, groupColor ); - item->setData( GROUP_INDEX, i ); + item->setData( GROUP_INDEX, (long)i ); } } myBusy = false; diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index e86fa26bb..3ea0f6acd 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -3585,7 +3585,9 @@ void _pyCommand::SetBegPos( int thePartIndex, int thePosition ) TCollection_AsciiString _pyCommand::GetIndentation() { int end = 1; - while ( end <= Length() && isblank( myString.Value( end ))) + //while ( end <= Length() && isblank( myString.Value( end ))) + //ANA: isblank() function isn't provided in VC2010 compiler + while ( end <= Length() && ( myString.Value( end ) == ' ' || myString.Value( end ) == '\t') ) ++end; return ( end == 1 ) ? _AString("") : myString.SubString( 1, end - 1 ); } -- 2.39.2