Revision 1106 trunk/src/tools99/clist.cpp

clist.cpp (revision 1106)
2 2
 * $Id$
3 3
 *
4 4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
5
 * Copyright (c) 2008-2012 Regents of the University of California
6 6
 */
7 7
#include "clist.h"
8 8

  
......
16 16
  while (tmp->next != this) tmp = tmp->next;
17 17
  return (tmp);
18 18
}
19
 
19

  
20 20
int  clist::length(const int & max)
21 21
{
22 22
  int num = 1;
......
34 34

  
35 35
clist::clist(const clist & t)
36 36
{
37
  clist& tmp=*(clist *)(&t); 
37
  clist& tmp=*(clist *)(&t);
38 38
  next = t.next;
39 39
  tmp.next = this;
40 40
}
41
 
42
 
41

  
43 42
clist::~clist()
44 43
{
45 44
  if (next == this)

Also available in: Unified diff