Windows compatibility

This commit is contained in:
ana 2015-10-14 16:38:35 +03:00
parent 512d3547bc
commit 7c362c7041
3 changed files with 5 additions and 3 deletions

View File

@ -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()

View File

@ -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;

View File

@ -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 );
}