X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_PropagationHelperWdg.cxx;h=f7698b5b46ba177a368adb51d4d71d27fc6ab042;hp=c84b40be9d8c1413765714ae6fc69f348e5b98f3;hb=3a821b48ba986795abde72f524fa1a62a5802df2;hpb=3026fe8712957e4312f2c4a261c555c7968b889a diff --git a/src/StdMeshersGUI/StdMeshersGUI_PropagationHelperWdg.cxx b/src/StdMeshersGUI/StdMeshersGUI_PropagationHelperWdg.cxx index c84b40be9..f7698b5b4 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_PropagationHelperWdg.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_PropagationHelperWdg.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -219,7 +219,7 @@ bool StdMeshersGUI_PropagationHelperWdg::buildChains() // aPreviewActor holds a map od all sub-shapes of mainShape SMESH_PreviewActorsCollection* previewActor = mySubSelectWdg->GetActorCollection(); if ( !previewActor ) return false; - const QList& egdeIDs = previewActor->GetIndices(); + const QList& edgeIDs = previewActor->GetIndices(); // Make a 'map' of WIREs of EDGE with quadrilateral WIREs only @@ -277,11 +277,11 @@ bool StdMeshersGUI_PropagationHelperWdg::buildChains() TColStd_MapOfInteger shapeEdges; if ( !shape.IsSame( mainShape )) - for ( QList::const_iterator ieIt = egdeIDs.begin(); ieIt != egdeIDs.end(); ++ieIt ) + for ( QList::const_iterator ieIt = edgeIDs.begin(); ieIt != edgeIDs.end(); ++ieIt ) shapeEdges.Add( *ieIt ); // loop on all EDGEs in mainShape - for ( QList::const_iterator ieIt = egdeIDs.begin(); ieIt != egdeIDs.end(); ++ieIt ) + for ( QList::const_iterator ieIt = edgeIDs.begin(); ieIt != edgeIDs.end(); ++ieIt ) { if ( chainedEdges.Contains( *ieIt )) continue; @@ -329,7 +329,7 @@ bool StdMeshersGUI_PropagationHelperWdg::buildChains() if ( ch.size() < 2 ) myChains.pop_back(); } - } // loop on egdeIDs + } // loop on edgeIDs return !myChains.empty(); } @@ -379,7 +379,7 @@ std::vector< int > * StdMeshersGUI_PropagationHelperWdg::getSelectedChain() std::vector< int > * chain = 0; if ( QListWidgetItem * item = myListWidget->currentItem() ) { - int i = item->data( Qt::UserRole ).toInt(); + size_t i = (size_t) item->data( Qt::UserRole ).toInt(); if ( 0 <= i && i < myChains.size() ) chain = & myChains[i]; }