equal
deleted
inserted
replaced
38 CMemSpyEngineOutputList::~CMemSpyEngineOutputList() |
38 CMemSpyEngineOutputList::~CMemSpyEngineOutputList() |
39 { |
39 { |
40 delete iFormatBuffer; |
40 delete iFormatBuffer; |
41 iItems.ResetAndDestroy(); |
41 iItems.ResetAndDestroy(); |
42 iItems.Close(); |
42 iItems.Close(); |
|
43 if (iSink) |
|
44 { |
|
45 TRAP_IGNORE(iSink->FlushL()); |
|
46 } |
43 } |
47 } |
44 |
48 |
45 |
49 |
46 void CMemSpyEngineOutputList::ConstructL() |
50 void CMemSpyEngineOutputList::ConstructL() |
47 { |
51 { |
149 // |
153 // |
150 CleanupStack::PopAndDestroy( line ); |
154 CleanupStack::PopAndDestroy( line ); |
151 } |
155 } |
152 } |
156 } |
153 |
157 |
|
158 void CMemSpyEngineOutputList::FlushL() |
|
159 { |
|
160 iSink->FlushL(); |
|
161 } |
154 |
162 |
155 CMemSpyEngineOutputListItem& CMemSpyEngineOutputList::Item( TInt aPos ) |
163 CMemSpyEngineOutputListItem& CMemSpyEngineOutputList::Item( TInt aPos ) |
156 { |
164 { |
157 CMemSpyEngineOutputListItem* ret = iItems[ aPos ]; |
165 CMemSpyEngineOutputListItem* ret = iItems[ aPos ]; |
158 return *ret; |
166 return *ret; |