Change-Id: I1d06febbdfb2e6a67b4647933b6e08399022a2ca
Signed-off-by: keonpyo.kong <keonpyo.kong@samsung.com>
Apply code review
Change-Id: I10706b51978cb6f5c7614900065f609d6ba3c3ad
Signed-off-by: keonpyo.kong <keonpyo.kong@samsung.com>
returnValue = xmlHandler.Construct(this);
- SysTryReturn(NID_UI, returnValue == true, E_OPERATION_FAILED, E_OPERATION_FAILED, "[E_OPERATION_FAILED] Parse Failed - xmlHandler Construct Failed.");
-
+ if (returnValue == false)
+ {
+ delete[] pXmlContents;
+ return E_OPERATION_FAILED;
+ }
+
r = xmlHandler.ParseXml(pXmlBuffer, readCount);
if (r != E_SUCCESS)
{
{
stringPointer[j] = '\n';
i += 2;
- j++;
+ j ++;
}
else if (stringPointer[i + 1] == 't')
{
stringPointer[j] = '\t';
i += 2;
- j++;
+ j ++;
}
else
- {
+ {
stringPointer[j] = '\\';
-
j++;
i++;
}
j++;
}
}
- if (j != i)
- {
- for (; j <= i; j++)
- stringPointer[j] = '\0';
- }
+ stringPointer[j] = '\0';
+ string.SetLength(j);
}