Mercurial > hg > octave-nkf
diff liboctave/str-vec.h @ 4220:c20a1e67cef6
[project @ 2002-12-06 22:18:54 by jwe]
author | jwe |
---|---|
date | Fri, 06 Dec 2002 22:18:55 +0000 |
parents | d9803711e047 |
children | dd108fa566fa |
line wrap: on
line diff
--- a/liboctave/str-vec.h +++ b/liboctave/str-vec.h @@ -28,15 +28,6 @@ #include "Array.h" -static int -str_vec_compare (const void *a_arg, const void *b_arg) -{ - const std::string *a = (const std::string *) a_arg; - const std::string *b = (const std::string *) b_arg; - - return a->compare (*b); -} - class string_vector : public Array<std::string> { @@ -88,9 +79,11 @@ std::string operator[] (int i) const { return Array<std::string>::elem (i); } + static int compare (const void *a_arg, const void *b_arg); + string_vector& qsort (bool make_unique = false) { - Array<std::string>::qsort (str_vec_compare); + Array<std::string>::qsort (compare); if (make_unique) uniq ();