コード例 #1
0
CEventLogger* CEventLogger::NewLC()
{
	CEventLogger* self = new (ELeave)CEventLogger();
	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
}
コード例 #2
0
EXPORT_C CEventLogger* CEventLogger::NewL()
{
    CEventLogger* eventLogger = new(ELeave) CEventLogger;
    CleanupStack::PushL(eventLogger);
    eventLogger->ConstructL();
    CleanupStack::Pop();
    return eventLogger;
}