comparison libgui/graphics/Backend.cc @ 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 fe0e34be5576
children
comparison
equal deleted inserted replaced
18932:edc4791fbcb2 18933:37c98933f26c
95 go.type ().c_str (), QThread::currentThreadId ()); 95 go.type ().c_str (), QThread::currentThreadId ());
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 OCTAVE_PTR_TYPE tmp (reinterpret_cast <OCTAVE_INTPTR_TYPE> (proxy));
101 OCTAVE_PTR_TYPE ((OCTAVE_INTPTR_TYPE) proxy)); 101 gObj.get_properties ().set(toolkitObjectProperty (go), tmp);
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 }