Generated -skels.cc file needs an explicit cast



Hi,

The generated xxx-skels.cc file is missing an explicit cast in the call to ORBit_skel_class_register(), as detailed below:

-------------------
--> IDL snippet <--
-------------------
module Ucb {
    interface Server
    {
    }
}

----------------------------
--> ucb-skels.cc snipped <--
----------------------------
void
POA_Ucb_Server__init(PortableServer_Servant servant, CORBA_Environment * env)
{
   static PortableServer_ClassInfo class_info =
      { NULL, (ORBit_small_impl_finder) & get_skel_small_Ucb_Server,
"IDL:Ucb/Server:1.0", &Ucb_Server__classid, NULL, &Ucb_Server__iinterface };
PortableServer_ServantBase__init(((PortableServer_ServantBase *) servant),
				    env);
   ORBit_skel_class_register(&class_info, servant, POA_Ucb_Server__fini,
			     ORBIT_VEPV_OFFSET(POA_Ucb_Server__vepv,
					       Ucb_Server_epv),
			     (CORBA_unsigned_long) 0);
}



I think the needed fix is the 2nd parameter of ORBit_skel_class_register needs an explicit cast to (PortableServer_ServantBase *) as in the above call.



Thanks
Marc Siegel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]