equal
deleted
inserted
replaced
246 bool noExtendedTextEncodingNameUsed() |
246 bool noExtendedTextEncodingNameUsed() |
247 { |
247 { |
248 return !didExtendTextCodecMaps; |
248 return !didExtendTextCodecMaps; |
249 } |
249 } |
250 |
250 |
251 #if PLATFORM(SYMBIAN) |
251 |
252 void deleteEncodingMaps() |
252 #if PLATFORM(SYMBIAN) |
253 { |
253 struct cleanupEncodingMaps { |
|
254 ~cleanupEncodingMaps() { |
254 if( textEncodingNameMap ) { |
255 if( textEncodingNameMap ) { |
255 textEncodingNameMap->clear(); |
256 textEncodingNameMap->clear(); |
256 delete textEncodingNameMap; |
257 delete textEncodingNameMap; |
257 textEncodingNameMap = NULL; |
258 textEncodingNameMap = NULL; |
258 } |
259 } |
260 textCodecMap->clear(); |
261 textCodecMap->clear(); |
261 delete textCodecMap; |
262 delete textCodecMap; |
262 textCodecMap = NULL; |
263 textCodecMap = NULL; |
263 } |
264 } |
264 didExtendTextCodecMaps = false; |
265 didExtendTextCodecMaps = false; |
265 } |
266 } |
|
267 }; |
|
268 struct cleanupEncodingMaps encodingMaps; |
266 #endif |
269 #endif |
267 |
270 |
268 } // namespace WebCore |
271 } // namespace WebCore |