equal
deleted
inserted
replaced
74 |
74 |
75 EXPORT_C gint TMSInbandToneImpl::Delete(TMSInbandTone*& inbandtone) |
75 EXPORT_C gint TMSInbandToneImpl::Delete(TMSInbandTone*& inbandtone) |
76 { |
76 { |
77 gint ret(TMS_RESULT_SUCCESS); |
77 gint ret(TMS_RESULT_SUCCESS); |
78 TRACE_PRN_FN_ENT; |
78 TRACE_PRN_FN_ENT; |
79 delete (TMSInbandToneImpl*) (inbandtone); |
79 delete (static_cast<TMSInbandToneImpl*>(inbandtone)); |
80 inbandtone = NULL; |
80 inbandtone = NULL; |
81 TRACE_PRN_FN_EXT; |
81 TRACE_PRN_FN_EXT; |
82 return ret; |
82 return ret; |
83 } |
83 } |
84 |
84 |
85 gint TMSInbandToneImpl::SetParent(TMSInbandTone*& parent) |
85 gint TMSInbandToneImpl::SetParent(TMSInbandTone*& parent) |
86 { |
86 { |
87 gint ret(TMS_RESULT_SUCCESS); |
87 gint ret(TMS_RESULT_SUCCESS); |
88 if (this->iBody) |
88 if (this->iBody) |
89 { |
89 { |
90 ((TMSInbandToneBodyImpl*) this->iBody)->SetParent(parent); |
90 static_cast<TMSInbandToneBodyImpl*>(this->iBody)->SetParent(parent); |
91 } |
91 } |
92 else |
92 else |
93 { |
93 { |
94 ret = TMS_RESULT_UNINITIALIZED_OBJECT; |
94 ret = TMS_RESULT_UNINITIALIZED_OBJECT; |
95 } |
95 } |