/[gzz]/gzz/gfx/libutil/ObjectStorer.hxx
ViewVC logotype

Diff of /gzz/gfx/libutil/ObjectStorer.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by tjl, Tue Dec 3 19:14:12 2002 UTC revision 1.9 by tjl, Wed Dec 4 10:54:22 2002 UTC
# Line 45  namespace Util { Line 45  namespace Util {
45           */           */
46          void remove(int p) {          void remove(int p) {
47              if(p == 0) return;              if(p == 0) return;
48                if((unsigned)p >= vec.size()) {
49                    cerr << "Trying to delete element past end "<<p<<"\n";
50                    return;
51                }
52                if(vec[p] == NULL) {
53                    cerr << "Trying to delete null element! "<<p<<"\n";
54                    return;
55                }
56              delete vec[p];              delete vec[p];
57              vec[p] = 0;              vec[p] = 0;
58          }          }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26