equal
deleted
inserted
replaced
67 TMSSourceType sourcetype; |
67 TMSSourceType sourcetype; |
68 ret = tmssource->GetType(sourcetype); |
68 ret = tmssource->GetType(sourcetype); |
69 switch (sourcetype) |
69 switch (sourcetype) |
70 { |
70 { |
71 case TMS_SOURCE_CLIENT: |
71 case TMS_SOURCE_CLIENT: |
72 delete (TMSClientSourceImpl*) (tmssource); |
72 delete (static_cast<TMSClientSourceImpl*>(tmssource)); |
73 tmssource = NULL; |
73 tmssource = NULL; |
74 ret = TMS_RESULT_SUCCESS; |
74 ret = TMS_RESULT_SUCCESS; |
75 break; |
75 break; |
76 case TMS_SOURCE_MODEM: |
76 case TMS_SOURCE_MODEM: |
77 { |
77 { |
78 delete (TMSModemSourceImpl*) (tmssource); |
78 delete (static_cast<TMSModemSourceImpl*>(tmssource)); |
79 tmssource = NULL; |
79 tmssource = NULL; |
80 ret = TMS_RESULT_SUCCESS; |
80 ret = TMS_RESULT_SUCCESS; |
81 } |
81 } |
82 break; |
82 break; |
83 case TMS_SOURCE_MIC: |
83 case TMS_SOURCE_MIC: |
84 { |
84 { |
85 delete (TMSMicSourceImpl*) (tmssource); |
85 delete (static_cast<TMSMicSourceImpl*>(tmssource)); |
86 tmssource = NULL; |
86 tmssource = NULL; |
87 ret = TMS_RESULT_SUCCESS; |
87 ret = TMS_RESULT_SUCCESS; |
88 } |
88 } |
89 break; |
89 break; |
90 default: |
90 default: |