diff -r 71ca22bcf22a -r 5a06f39ad45b mmserv/tms/tmsimpl/src/tmsglobalroutingimpl.cpp --- a/mmserv/tms/tmsimpl/src/tmsglobalroutingimpl.cpp Tue Feb 02 01:08:46 2010 +0200 +++ b/mmserv/tms/tmsimpl/src/tmsglobalroutingimpl.cpp Fri Apr 16 15:29:42 2010 +0300 @@ -15,7 +15,6 @@ * */ -#include #include "tmsutility.h" #include "tmsglobalroutingbodyimpl.h" #include "tmsglobalroutingimpl.h" @@ -49,7 +48,6 @@ return ret; } -// TO DO stop exporting this function EXPORT_C gint TMSGlobalRoutingImpl::Create(TMSGlobalRouting*& globrouting) { gint ret(TMS_RESULT_INSUFFICIENT_MEMORY); @@ -65,7 +63,11 @@ self = NULL; } } - globrouting = self; + if (self && ret == TMS_RESULT_SUCCESS) + { + globrouting = self; + ret = self->SetParent(globrouting); + } TRACE_PRN_FN_EXT; return ret; } @@ -80,4 +82,17 @@ return ret; } -// End of file +gint TMSGlobalRoutingImpl::SetParent(TMSGlobalRouting*& parent) + { + gint ret(TMS_RESULT_SUCCESS); + if (this->iBody) + { + ((TMSGlobalRoutingBodyImpl*) this->iBody)->SetParent(parent); + } + else + { + ret = TMS_RESULT_UNINITIALIZED_OBJECT; + } + return ret; + } +