equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Config descriptor parser for ROP specific settings.* |
14 * Description: Config descriptor parser for ROP specific settings.* |
15 */ |
15 */ |
16 |
16 |
17 |
17 |
18 // Version : %version: 3 % |
18 // Version : %version: 4 % |
19 |
19 |
20 |
20 |
21 |
21 |
22 |
22 |
23 // INCLUDE FILES |
23 // INCLUDE FILES |
345 break; |
345 break; |
346 } |
346 } |
347 case EMPRopConfTypeString: |
347 case EMPRopConfTypeString: |
348 { |
348 { |
349 HBufC* str = aItem->iStringValue; |
349 HBufC* str = aItem->iStringValue; |
350 TInt strLength = str->Length(); |
350 HBufC8* str8 = CnvUtfConverter::ConvertFromUnicodeToUtf8L( *str ); |
351 HBufC8* str8 = HBufC8::NewLC(strLength); |
351 CleanupStack::PushL( str8 ); |
352 TPtr8 str8Ptr = str8->Des(); |
352 TInt str8Length = str8->Length(); |
353 CnvUtfConverter::ConvertFromUnicodeToUtf8(str8Ptr, *str); |
353 buf = HBufC8::NewL(aItem->iKey->Length() + str8Length + KMPRopStringEntryPrototypeStaticLength); |
354 |
|
355 buf = HBufC8::NewL(aItem->iKey->Length() + strLength + KMPRopStringEntryPrototypeStaticLength); |
|
356 TPtr8 ptr = buf->Des(); |
354 TPtr8 ptr = buf->Des(); |
357 ptr.Format(KMPRopStringEntryPrototype, aItem->iKey, &(*str8)); |
355 ptr.Format(KMPRopStringEntryPrototype, aItem->iKey, &(*str8)); |
358 CleanupStack::PopAndDestroy(); //str8 |
356 CleanupStack::PopAndDestroy( str8 ); |
359 break; |
357 break; |
360 } |
358 } |
361 default: |
359 default: |
362 break; |
360 break; |
363 } |
361 } |