CCommandParser* CCommandParser::NewLC(MConnectionDataCallbacks& aObserver)
    {
    CCommandParser* self = new (ELeave) CCommandParser(aObserver);
    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
    }
Exemple #2
0
CCommandParser* CCommandParser::NewL(CConsoleBase& aConsl)
//
// Create and connect client with leaving
//
    {
    CCommandParser* p = new (ELeave) CCommandParser(aConsl);
    CleanupStack::PushL(p);
    p->ConstructL();
    CleanupStack::Pop(p);
    return p;
    }