X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_StdIterator.hxx;h=8aea97673afac4e031881ec10e76f6f1d3472654;hb=499f29d24922cec66e41b41a0039a954993bc6df;hp=034b61983113ad914d62aa48cd69e26bb64a4da8;hpb=7a65c9fad427b1ccba6b9ccae612296e5092a324;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_StdIterator.hxx b/src/SMDS/SMDS_StdIterator.hxx index 034b61983..8aea97673 100644 --- a/src/SMDS/SMDS_StdIterator.hxx +++ b/src/SMDS/SMDS_StdIterator.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 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 @@ -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