--- a/uiutils/Findutil/src/FindUtilChinese.cpp Wed Jun 09 09:58:37 2010 +0300
+++ b/uiutils/Findutil/src/FindUtilChinese.cpp Mon Jun 21 15:57:43 2010 +0300
@@ -325,14 +325,17 @@
{
if (wordInterpretationBuf[i] == KSeperator)
{
- aSpellList.Append((wordInterpretationBuf.MidTPtr(start, i-start)).Alloc());
+ HBufC16* tmpStr = (wordInterpretationBuf.MidTPtr(start, i-start)).AllocLC();
+ aSpellList.AppendL(tmpStr);
+ CleanupStack::Pop(tmpStr);
start = i + 1;
}
}
-
- aSpellList.Append((wordInterpretationBuf.MidTPtr(start, len-start)).Alloc());
-
+ HBufC16* tmpStr = (wordInterpretationBuf.MidTPtr(start, len-start)).AllocLC();
+ aSpellList.AppendL(tmpStr);
+ CleanupStack::Pop(tmpStr);
+
return ETrue;
}
@@ -465,12 +468,16 @@
{
if (wordInterpretationBuf[i] == KSeperator)
{
- aSpellList.Append((wordInterpretationBuf.MidTPtr(start, i-start)).Alloc());
+ HBufC16* tmpStr = (wordInterpretationBuf.MidTPtr(start, i-start)).AllocLC();
+ aSpellList.AppendL(tmpStr);
+ CleanupStack::Pop(tmpStr);
start = i + 1;
}
}
-
- aSpellList.Append((wordInterpretationBuf.MidTPtr(start, len-start)).Alloc());
+
+ HBufC16* tmpStr = (wordInterpretationBuf.MidTPtr(start, len-start)).AllocLC();
+ aSpellList.AppendL(tmpStr);
+ CleanupStack::Pop(tmpStr);
}
//Could look advanced cangjie as normal and easy cangjie
else
@@ -482,14 +489,17 @@
{
if (wordInterpretationBuf[i] == KSeperator)
{
- aSpellList.Append((wordInterpretationBuf.MidTPtr(start, i-start)).Alloc());
+ HBufC16* tmpStr = (wordInterpretationBuf.MidTPtr(start, i-start)).AllocLC();
+ aSpellList.AppendL(tmpStr);
+ CleanupStack::Pop(tmpStr);
start = i + 1;
}
}
-
- aSpellList.Append((wordInterpretationBuf.MidTPtr(start, len-start)).Alloc());
-
-
+
+ HBufC16* tmpStr = (wordInterpretationBuf.MidTPtr(start, len-start)).AllocLC();
+ aSpellList.AppendL(tmpStr);
+ CleanupStack::Pop(tmpStr);
+
iPtiEngine->GetSpelling(aHZUnicode, wordInterpretationBuf, EPtiCangJie);
len = wordInterpretationBuf.Length();
start = 0;
@@ -497,12 +507,16 @@
{
if (wordInterpretationBuf[i] == KSeperator)
{
- aSpellList.Append((wordInterpretationBuf.MidTPtr(start, i-start)).Alloc());
+ tmpStr = (wordInterpretationBuf.MidTPtr(start, i-start)).AllocLC();
+ aSpellList.AppendL(tmpStr);
+ CleanupStack::Pop(tmpStr);
start = i + 1;
}
}
-
- aSpellList.Append((wordInterpretationBuf.MidTPtr(start, len-start)).Alloc());
+
+ tmpStr = (wordInterpretationBuf.MidTPtr(start, len-start)).AllocLC();
+ aSpellList.AppendL(tmpStr);
+ CleanupStack::Pop(tmpStr);
}
return ETrue;