some typecast (crs4)

This commit is contained in:
ganovelli 2005-05-17 21:14:56 +00:00
parent f81c3c76de
commit 145b8a757c
1 changed files with 6 additions and 3 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.4 2004/10/28 00:47:42 cignoni
Better Doxygen documentation
Revision 1.3 2004/09/20 08:37:47 cignoni Revision 1.3 2004/09/20 08:37:47 cignoni
Better Doxygen docs Better Doxygen docs
@ -114,7 +117,7 @@ static VertexIterator AddVertices(MeshType &m,int n, PointerUpdater<VertexPointe
// e poiche' lo spazio e' cambiato si ricalcola anche last da zero // e poiche' lo spazio e' cambiato si ricalcola anche last da zero
unsigned int siz=m.vert.size()-n; unsigned int siz=m.vert.size()-n;
if(last!=0) if(last!=(vertexIterator)0)
{ {
last = m.vert.begin(); last = m.vert.begin();
advance(last,siz); advance(last,siz);
@ -144,7 +147,7 @@ static EdgeIterator AddEdges(MeshType &m, int n)
*/ */
static EdgeIterator AddEdges(MeshType &m, int n, PointerUpdater<EdgePointer> &pu) static EdgeIterator AddEdges(MeshType &m, int n, PointerUpdater<EdgePointer> &pu)
{ {
EdgeIterator last=0; EdgeIterator last=(EdgeIterator)0;
pu.Clear(); pu.Clear();
if(m.edges.empty()) { if(m.edges.empty()) {
pu.oldBase=0; // if the vector is empty we cannot find the last valid element pu.oldBase=0; // if the vector is empty we cannot find the last valid element
@ -184,7 +187,7 @@ static EdgeIterator AddEdges(MeshType &m, int n, PointerUpdater<EdgePointer> &pu
} }
// e poiche' lo spazio e' cambiato si ricalcola anche last da zero // e poiche' lo spazio e' cambiato si ricalcola anche last da zero
unsigned int siz=m.edges.size()-n; unsigned int siz=m.edges.size()-n;
if(last!=0) if(last!=(EdgeIterator)0)
{ {
last = m.edges.begin(); last = m.edges.begin();
advance(last,siz); advance(last,siz);