Bug 2498

Summary: Investigate making ORB_Core argument of TAO_InputCDR a reference
Product: TAO Reporter: Johnny Willemsen <jwillemsen>
Component: ORBAssignee: DOC Center Support List (internal) <tao-support>
Status: ASSIGNED ---    
Severity: normal    
Priority: P3    
Version: 1.5   
Hardware: All   
OS: All   

Description Johnny Willemsen 2006-04-06 13:46:14 CDT
found during valuetype changes. we do store a ORB_Core* in TAO_InputCDR. In
several places in the code we have a fallback when this pointer is 0, then we
get the orb instance. We should look if we can make this argument a ORB_Core& so
that we can remove the fallback for a 0 pointer in several places throughout
TAO. This will mean we have to change the order of the arguments of the
TAO_InputCDR constructors.
Comment 1 Johnny Willemsen 2006-04-10 03:19:33 CDT
a quick test showed that changing this in input_cdr will cause interface changes
throughout the core libs in all areas. The orb_core is passed through a lot of
constructors and methods, in about 95% of the cases there is no check at all if
the orb_core pointer is passed could be zero. Changing it to a reference will
make it really clar the orb_core must always be there. We should make this
change after all branches are merged to cvs head because this impacts too much
classes at this moment to also put under a branch.