fix more warnings

This commit is contained in:
DarthArgus
2014-10-27 18:59:37 -07:00
parent 9e6f200300
commit 7b6271b48d
26 changed files with 71 additions and 170 deletions
@@ -217,12 +217,10 @@ Plat_Unicode::String UTF8ToUnicode(const char *source)
Plat_Unicode::String s = narrowToWide("");
int length = strlen(source) + 1;
UTF16 *buffer = new UTF16[length];
if (buffer != NULL)
{
UTF8_convertToUTF16(const_cast<char *>(source) , buffer, length);
s =buffer;
delete [] buffer;
}
UTF8_convertToUTF16(const_cast<char *>(source) , buffer, length);
s =buffer;
delete [] buffer;
return s;
}