mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-04 05:15:51 -04:00
fix more warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user