javauis/lcdui_akn/lcdui/src/CMIDEdwinUtils.cpp
branchRCL_3
changeset 23 e5618cc85d74
parent 21 4376525cdefb
equal deleted inserted replaced
21:4376525cdefb 23:e5618cc85d74
  1219     ASSERT(iClearText);
  1219     ASSERT(iClearText);
  1220     TPtr ptr = iClearText->Des();
  1220     TPtr ptr = iClearText->Des();
  1221 
  1221 
  1222     TInt totalLength = ptr.Length() + aBuf.Length();
  1222     TInt totalLength = ptr.Length() + aBuf.Length();
  1223     if (totalLength > ptr.MaxLength())
  1223     if (totalLength > ptr.MaxLength())
  1224     {
  1224     {    
  1225         iClearText = iClearText->ReAllocL(totalLength);
  1225 		iClearText = iClearText->ReAllocL(totalLength);
  1226         ptr = iClearText->Des();
  1226 		ptr.Set(iClearText->Des());
  1227     }
  1227     }
  1228 
  1228 
  1229     ptr.Insert(aPos,aBuf);
  1229     ptr.Insert(aPos,aBuf);
  1230 }
  1230 }
  1231 
  1231