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,
vtkLookupTable* theLookupTable)
{
bool anIsInitialized = theFunctor;
bool anIsInitialized = theFunctor != NULL;
myExtractUnstructuredGrid->ClearRegisteredCells();
myExtractUnstructuredGrid->ClearRegisteredCellsWithType();
myExtractUnstructuredGrid->SetModeOfChanging(VTKViewer_ExtractUnstructuredGrid::ePassAll);

View File

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