X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_StdIterator.hxx;h=a6bc79130a593f9e2bb2415a7a09c879217fcfe9;hb=f016bdf914220827ec8f9a7048bc78fc3fb8c299;hp=1bc506c6ff20380c69fde4b8b2cac127d3170498;hpb=bd8f1aee7c78f7d2eb82bd4fec5e08c9e3d280ce;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_StdIterator.hxx b/src/SMDS/SMDS_StdIterator.hxx index 1bc506c6f..a6bc79130 100644 --- a/src/SMDS/SMDS_StdIterator.hxx +++ b/src/SMDS/SMDS_StdIterator.hxx @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2021 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 // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,7 +17,7 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// SMESH SMDS : implementaion of Salome mesh data structure +// SMESH SMDS : implementation of Salome mesh data structure // File : SMDS_StdIterator.hxx // Created : Fri Feb 5 11:03:46 2010 // Author : Edward AGAPOV (eap) @@ -45,7 +45,7 @@ public: // constructor to use as return from begin() SMDS_StdIterator( PtrSMDSIterator pItr ) - : _value( pItr->more() ? (VALUE)(pItr->next()) : 0 ), _piterator(pItr) + : _value( pItr->more() ? VALUE(pItr->next()) : VALUE(0) ), _piterator(pItr) {} // constructor to use as return from end() SMDS_StdIterator(): _value( 0 ) @@ -58,12 +58,12 @@ public: // Step to the next one _Self& operator++() - { _value = _piterator->more() ? VALUE( _piterator->next()) : 0; return *this; } + { _value = _piterator->more() ? VALUE( _piterator->next()) : VALUE(0); return *this; } // Step to the next one _Self operator++(int) - { _Self res = *this; _value = _piterator->more() ? VALUE( _piterator->next()) : 0; return res; } + { _Self res = *this; _value = _piterator->more() ? VALUE( _piterator->next()) : VALUE(0); return res; } // Test of end bool