equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
99 { |
99 { |
100 } |
100 } |
101 |
101 |
102 CScreen::CFallbackMap::~CFallbackMap() |
102 CScreen::CFallbackMap::~CFallbackMap() |
103 { |
103 { |
104 delete iMap; |
104 delete []iMap; |
105 } |
105 } |
106 |
106 |
107 void CScreen::CFallbackMap::ConstructL() |
107 void CScreen::CFallbackMap::ConstructL() |
108 { |
108 { |
109 iMapSize = 0; |
109 iMapSize = 0; |
226 { |
226 { |
227 TInt* newMap=NULL; |
227 TInt* newMap=NULL; |
228 newMap = new TInt [maxSize]; |
228 newMap = new TInt [maxSize]; |
229 if (newMap) |
229 if (newMap) |
230 { |
230 { |
231 delete iMap; |
231 delete []iMap; |
232 iMap = newMap; |
232 iMap = newMap; |
233 iMapSize = maxSize; |
233 iMapSize = maxSize; |
234 } |
234 } |
235 else |
235 else |
236 { |
236 { |