changeset 18933:37c98933f26c

avoid an old-style cast warning * Backend.cc (Backend::initialize): Use reinterpret_cast instead of C-style cast.
author John W. Eaton <jwe@octave.org>
date Thu, 17 Jul 2014 11:47:36 -0400
parents edc4791fbcb2
children 770c0d79341b
files libgui/graphics/Backend.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/graphics/Backend.cc	Thu Jul 17 11:19:21 2014 -0400
+++ b/libgui/graphics/Backend.cc	Thu Jul 17 11:47:36 2014 -0400
@@ -97,8 +97,8 @@
       ObjectProxy* proxy = new ObjectProxy ();
       graphics_object gObj (go);
 
-      gObj.get_properties ().set(toolkitObjectProperty (go),
-                                 OCTAVE_PTR_TYPE ((OCTAVE_INTPTR_TYPE) proxy));
+      OCTAVE_PTR_TYPE tmp (reinterpret_cast <OCTAVE_INTPTR_TYPE> (proxy));
+      gObj.get_properties ().set(toolkitObjectProperty (go), tmp);
 
       emit createObject (go.get_handle ().value ());