diff src/graphics.cc @ 11492:d86389a6dc3f

graphics.cc: avoid GCC warning
author John W. Eaton <jwe@octave.org>
date Wed, 12 Jan 2011 15:13:20 -0500
parents fbdb95640852
children fd0a3ac60b0e
line wrap: on
line diff
--- a/src/graphics.cc	Wed Jan 12 15:12:07 2011 -0500
+++ b/src/graphics.cc	Wed Jan 12 15:13:20 2011 -0500
@@ -2534,14 +2534,14 @@
 }
 
 graphics_object
-graphics_object::get_ancestor (const std::string& type) const
+graphics_object::get_ancestor (const std::string& obj_type) const
 {
   if (valid_object ())
     {
-      if (isa (type))
+      if (isa (obj_type))
         return *this;
       else
-        return gh_manager::get_object (get_parent ()).get_ancestor (type);
+        return gh_manager::get_object (get_parent ()).get_ancestor (obj_type);
     }
   else
     return graphics_object ();