Mercurial > octave-nkf
comparison libgui/graphics/Backend.cc @ 19649:4c1f638a381e gui-release
avoid old-style cast warning in libgui
* graphics/Backend.cc: Replace C-style cast with reinterpret_cast.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 23 Jan 2015 14:37:43 -0500 |
parents | 523878f76518 |
children | af0399a5aae0 |
comparison
equal
deleted
inserted
replaced
19648:4c3ea57905fd | 19649:4c1f638a381e |
---|---|
96 | 96 |
97 ObjectProxy* proxy = new ObjectProxy (); | 97 ObjectProxy* proxy = new ObjectProxy (); |
98 graphics_object gObj (go); | 98 graphics_object gObj (go); |
99 | 99 |
100 gObj.get_properties ().set(toolkitObjectProperty (go), | 100 gObj.get_properties ().set(toolkitObjectProperty (go), |
101 OCTAVE_PTR_TYPE ((OCTAVE_INTPTR_TYPE) proxy)); | 101 OCTAVE_PTR_TYPE (reinterpret_cast <OCTAVE_INTPTR_TYPE> (proxy))); |
102 | 102 |
103 emit createObject (go.get_handle ().value ()); | 103 emit createObject (go.get_handle ().value ()); |
104 | 104 |
105 return true; | 105 return true; |
106 } | 106 } |