mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 505734 - mozStorageStatementParams.cpp compilation fails on MinGW. r=sdwilsh
This commit is contained in:
parent
3bb91e23e7
commit
647310b4f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user