mmserv/tms/tmsimpl/src/tmsglobalgaineffectbodyimpl.cpp
changeset 20 b67dd1fc57c5
parent 12 5a06f39ad45b
equal deleted inserted replaced
19:4a629bc82c5e 20:b67dd1fc57c5
    44     }
    44     }
    45 
    45 
    46 gint TMSGlobalGainEffectBodyImpl::Create(TMSGlobalGainEffectBody*& bodyimpl)
    46 gint TMSGlobalGainEffectBodyImpl::Create(TMSGlobalGainEffectBody*& bodyimpl)
    47     {
    47     {
    48     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
    48     gint ret(TMS_RESULT_INSUFFICIENT_MEMORY);
    49     TMSGlobalGainEffectBodyImpl* self = new TMSGlobalGainEffectBodyImpl;
    49     TMSGlobalGainEffectBodyImpl* self = new TMSGlobalGainEffectBodyImpl();
    50     if (self)
    50     if (self)
    51         {
    51         {
    52         ret = self->PostConstruct();
    52         ret = self->PostConstruct();
    53         if (ret != TMS_RESULT_SUCCESS)
    53         if (ret != TMS_RESULT_SUCCESS)
    54             {
    54             {
    62 
    62 
    63 gint TMSGlobalGainEffectBodyImpl::PostConstruct()
    63 gint TMSGlobalGainEffectBodyImpl::PostConstruct()
    64     {
    64     {
    65     gint ret(TMS_RESULT_SUCCESS);
    65     gint ret(TMS_RESULT_SUCCESS);
    66     iClientId = 1;
    66     iClientId = 1;
    67     iProxy = new TMSProxy;
    67     iProxy = new TMSProxy();
    68     if (!iProxy)
    68     if (!iProxy)
    69         {
    69         {
    70         ret = TMS_RESULT_INSUFFICIENT_MEMORY;
    70         ret = TMS_RESULT_INSUFFICIENT_MEMORY;
    71         }
    71         }
    72     RET_REASON_IF_ERR(ret);
    72     RET_REASON_IF_ERR(ret);