contentpublishingsrv/contentpublishingutils/contentpublishingmap/src/cpliwmap.cpp
branchRCL_3
changeset 64 b276298d5729
parent 51 15e4dd19031c
equal deleted inserted replaced
59:a0713522ab97 64:b276298d5729
   331             const CLiwList* sourceList = paramForValue->Value().AsList(); 
   331             const CLiwList* sourceList = paramForValue->Value().AsList(); 
   332             TInt count = sourceList->Count();
   332             TInt count = sourceList->Count();
   333             for (TInt i = 0; i < count; i++)
   333             for (TInt i = 0; i < count; i++)
   334                 {
   334                 {
   335                 TLiwVariant trigger;
   335                 TLiwVariant trigger;
       
   336                 trigger.PushL();
   336                 sourceList->AtL(i,trigger);
   337                 sourceList->AtL(i,trigger);
   337                 if (trigger.TypeId() == EVariantTypeDesC8)
   338                 if (trigger.TypeId() == EVariantTypeDesC8)
   338                     {
   339                     {
   339                     list->AppendL(trigger);
   340                     list->AppendL(trigger);
   340                     }
   341                     }
   345                     desc8.Assign( EscapeUtils::ConvertFromUnicodeToUtf8L( 
   346                     desc8.Assign( EscapeUtils::ConvertFromUnicodeToUtf8L( 
   346                             trigger.AsDes() ) );
   347                             trigger.AsDes() ) );
   347                     list->AppendL(TLiwVariant(desc8));
   348                     list->AppendL(TLiwVariant(desc8));
   348                     CleanupStack::PopAndDestroy( &desc8 );
   349                     CleanupStack::PopAndDestroy( &desc8 );
   349                     }
   350                     }
       
   351                 CleanupStack::PopAndDestroy(&trigger);
   350                 }
   352                 }
   351             }
   353             }
   352         }
   354         }
   353     return list;
   355     return list;
   354     }
   356     }