Bug 505734 - mozStorageStatementParams.cpp compilation fails on MinGW. r=sdwilsh

This commit is contained in:
Jacek Caban 2009-08-09 22:30:38 +02:00
parent 3ac7c4f0b7
commit 1f66701ce7

View File

@ -93,7 +93,8 @@ StatementParams::SetProperty(nsIXPConnectWrappedNative *aWrapper,
}
else if (JSVAL_IS_STRING(aId)) {
JSString *str = JSVAL_TO_STRING(aId);
NS_ConvertUTF16toUTF8 name(::JS_GetStringChars(str),
NS_ConvertUTF16toUTF8 name(reinterpret_cast<const PRUnichar *>
(::JS_GetStringChars(str)),
::JS_GetStringLength(str));
// check to see if there's a parameter with this name
@ -210,7 +211,8 @@ StatementParams::NewResolve(nsIXPConnectWrappedNative *aWrapper,
// Check to see if there's a parameter with this name, and if not, let
// the rest of the prototype chain be checked.
NS_ConvertUTF16toUTF8 name(nameChars, nameLength);
NS_ConvertUTF16toUTF8 name(reinterpret_cast<const PRUnichar *>(nameChars),
nameLength);
nsresult rv = mStatement->GetParameterIndex(name, &idx);
if (NS_FAILED(rv)) {
*_objp = NULL;