devsoundextensions/restrictedaudiooutput/RestrictedAudioOutputMessageHandler/src/RestrictedAudioOutputMessageHandler.cpp
equal
deleted
inserted
replaced
37 // Two-phased constructor. |
37 // Two-phased constructor. |
38 EXPORT_C CRestrictedAudioOutputMessageHandler* CRestrictedAudioOutputMessageHandler::NewL(TAny* aCustomInterface) |
38 EXPORT_C CRestrictedAudioOutputMessageHandler* CRestrictedAudioOutputMessageHandler::NewL(TAny* aCustomInterface) |
39 { |
39 { |
40 CRestrictedAudioOutput* audioOutput = (CRestrictedAudioOutput*)aCustomInterface; |
40 CRestrictedAudioOutput* audioOutput = (CRestrictedAudioOutput*)aCustomInterface; |
41 CRestrictedAudioOutputMessageHandler* self = new (ELeave) CRestrictedAudioOutputMessageHandler(audioOutput); |
41 CRestrictedAudioOutputMessageHandler* self = new (ELeave) CRestrictedAudioOutputMessageHandler(audioOutput); |
42 |
42 CleanupStack::PushL(self); |
43 self->ConstructL(); |
43 self->ConstructL(); |
|
44 CleanupStack::Pop(self); |
44 return self; |
45 return self; |
45 } |
46 } |
46 |
47 |
47 // ----------------------------------------------------------------------------- |
48 // ----------------------------------------------------------------------------- |
48 // CRestrictedAudioOutputMessageHandler::ConstructL |
49 // CRestrictedAudioOutputMessageHandler::ConstructL |