equal
deleted
inserted
replaced
566 |
566 |
567 void CElementBase::AddToElementListL( CElementBase * aElement, TBool aDeleteWithElement) |
567 void CElementBase::AddToElementListL( CElementBase * aElement, TBool aDeleteWithElement) |
568 { |
568 { |
569 //create new container for element |
569 //create new container for element |
570 TElementContainer * container = new (ELeave) TElementContainer; |
570 TElementContainer * container = new (ELeave) TElementContainer; |
571 |
571 CleanupStack::PushL(container); |
572 |
572 |
573 //fill container and apppend it to list |
573 //fill container and apppend it to list |
574 container->iElement = aElement; |
574 container->iElement = aElement; |
575 container->iDeleteWithElement = aDeleteWithElement; |
575 container->iDeleteWithElement = aDeleteWithElement; |
576 |
576 |
577 iElements.AppendL( container); |
577 iElements.AppendL( container); |
|
578 CleanupStack::Pop(container); //container |
578 } |
579 } |
579 |
580 |
580 // ----------------------------------------------------------------------------- |
581 // ----------------------------------------------------------------------------- |
581 // CElementBase::DescriptionL() |
582 // CElementBase::DescriptionL() |
582 // ----------------------------------------------------------------------------- |
583 // ----------------------------------------------------------------------------- |