421 |
421 |
422 // ----------------------------------------------------------------------------- |
422 // ----------------------------------------------------------------------------- |
423 // CATResult::NewL |
423 // CATResult::NewL |
424 // ----------------------------------------------------------------------------- |
424 // ----------------------------------------------------------------------------- |
425 // |
425 // |
426 EXPORT_C CATResult* CATResult::NewL(TATId aId, TATType aType, const TATParam aParam) |
426 EXPORT_C CATResult* CATResult::NewL(TATId aId, TATType aType, const TATParam& aParam) |
427 { |
427 { |
428 CATResult* self = CATResult::NewLC(aId, aType, aParam); |
428 CATResult* self = CATResult::NewLC(aId, aType, aParam); |
429 CleanupStack::Pop(self); |
429 CleanupStack::Pop(self); |
430 return self; |
430 return self; |
431 } |
431 } |
432 |
432 |
433 // ----------------------------------------------------------------------------- |
433 // ----------------------------------------------------------------------------- |
434 // CATResult::NewLC |
434 // CATResult::NewLC |
435 // ----------------------------------------------------------------------------- |
435 // ----------------------------------------------------------------------------- |
436 // |
436 // |
437 EXPORT_C CATResult* CATResult::NewLC(TATId aId, TATType aType, const TATParam aParam) |
437 EXPORT_C CATResult* CATResult::NewLC(TATId aId, TATType aType, const TATParam& aParam) |
438 { |
438 { |
439 CATResult* self = new (ELeave) CATResult; |
439 CATResult* self = new (ELeave) CATResult; |
440 CleanupStack::PushL(self); |
440 CleanupStack::PushL(self); |
441 RATParamArray array; |
441 RATParamArray array; |
442 TInt err = array.Append(aParam); |
442 TInt err = array.Append(aParam); |