Mercurial > octave-nkf
diff libgui/graphics/Backend.cc @ 18967: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 | fe0e34be5576 |
children | 2f4406e9dad6 |
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 ());