creator/engine/src/creator_scriptelement.cpp
changeset 54 9347c563e054
parent 17 4f2773374eff
equal deleted inserted replaced
48:da3ec8478e66 54:9347c563e054
   206         {
   206         {
   207         iSubElements.AppendL(aElem);
   207         iSubElements.AppendL(aElem);
   208         }
   208         }
   209     else if( aIndex < iSubElements.Count())
   209     else if( aIndex < iSubElements.Count())
   210         {
   210         {
   211         iSubElements.Insert(aElem, aIndex);
   211         iSubElements.InsertL(aElem, aIndex);
   212         }
   212         }
   213     else
   213     else
   214         {
   214         {
   215         User::Leave(KErrArgument);
   215         User::Leave(KErrArgument);
   216         }
   216         }
   252         {
   252         {
   253         iAttributes.AppendL(aAttribute);
   253         iAttributes.AppendL(aAttribute);
   254         }
   254         }
   255     else if( aIndex < iAttributes.Count())
   255     else if( aIndex < iAttributes.Count())
   256         {
   256         {
   257         iAttributes.Insert(aAttribute, aIndex);        
   257         iAttributes.InsertL(aAttribute, aIndex);        
   258         }
   258         }
   259     else
   259     else
   260         {
   260         {
   261         User::Leave(KErrArgument);
   261         User::Leave(KErrArgument);
   262         }
   262         }