mmserv/tms/tmsimpl/src/tmssourceimpl.cpp
branchRCL_3
changeset 13 f5c5c82a163e
parent 10 3d8c721bf319
child 16 43d09473c595
equal deleted inserted replaced
11:03a293c97d5c 13:f5c5c82a163e
    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: