comparison liboctave/str-vec.cc @ 5304:7b6edb02f8c9

[project @ 2005-04-25 16:36:32 by jwe]
author jwe
date Mon, 25 Apr 2005 16:36:32 +0000
parents 23b37da9fd5b
children 4c8a2e4e0717
comparison
equal deleted inserted replaced
5303:9281e7a8072a 5304:7b6edb02f8c9
140 } 140 }
141 141
142 void 142 void
143 string_vector::delete_c_str_vec (const char * const *v) 143 string_vector::delete_c_str_vec (const char * const *v)
144 { 144 {
145 while (*v) 145 const char * const *p = v;
146 delete [] *v; 146
147 while (*p)
148 delete [] *p++;
147 149
148 delete [] v; 150 delete [] v;
149 } 151 }
150 152
151 // Format a list in neat columns. 153 // Format a list in neat columns.