diff liboctave/str-vec.cc @ 5760:8d7162924bd3

[project @ 2006-04-14 04:01:37 by jwe]
author jwe
date Fri, 14 Apr 2006 04:01:40 +0000
parents 161ebd1f3410
children 84ca47e311b3
line wrap: on
line diff
--- a/liboctave/str-vec.cc
+++ b/liboctave/str-vec.cc
@@ -71,8 +71,8 @@
 int
 string_vector::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;
+  const std::string *a = static_cast<const std::string *>  (a_arg);
+  const std::string *b = static_cast<const std::string *> (b_arg);
 
   return a->compare (*b);
 }