One more compilation error on Mageia 5

This commit is contained in:
vsr 2015-11-27 13:13:27 +03:00
parent cd8f63e177
commit 8348eecb6b
2 changed files with 3 additions and 3 deletions

View File

@ -363,7 +363,7 @@ SMESH_DeviceActor
SMESH_ScalarBarActor* theScalarBarActor, SMESH_ScalarBarActor* theScalarBarActor,
vtkLookupTable* theLookupTable) vtkLookupTable* theLookupTable)
{ {
bool anIsInitialized = theFunctor; bool anIsInitialized = theFunctor != NULL;
myExtractUnstructuredGrid->ClearRegisteredCells(); myExtractUnstructuredGrid->ClearRegisteredCells();
myExtractUnstructuredGrid->ClearRegisteredCellsWithType(); myExtractUnstructuredGrid->ClearRegisteredCellsWithType();
myExtractUnstructuredGrid->SetModeOfChanging(VTKViewer_ExtractUnstructuredGrid::ePassAll); myExtractUnstructuredGrid->SetModeOfChanging(VTKViewer_ExtractUnstructuredGrid::ePassAll);

View File

@ -407,8 +407,8 @@ namespace {
if ( nbQuads > 0 ) if ( nbQuads > 0 )
toRemove = helper->IsStructured( faceSm ); toRemove = helper->IsStructured( faceSm );
else else
toRemove = quadAlgo->CheckNbEdges( *helper->GetMesh(), toRemove = ( quadAlgo->CheckNbEdges( *helper->GetMesh(),
faceSm->GetSubShape() ); faceSm->GetSubShape() ) != NULL );
nbRemoved += toRemove; nbRemoved += toRemove;
if ( toRemove ) if ( toRemove )
smIt = notQuadSubMesh.erase( smIt ); smIt = notQuadSubMesh.erase( smIt );