mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 645101 - Stop using [deprecated] Storage methods (nsXULTemplateQueryProcessorStorage)
r=sicking
This commit is contained in:
parent
4f383e2f5d
commit
db69572e5f
@ -375,24 +375,24 @@ nsXULTemplateQueryProcessorStorage::CompileQuery(nsIXULTemplateBuilder* aBuilder
|
||||
case 1:
|
||||
typeError = PR_sscanf(NS_ConvertUTF16toUTF8(value).get(),"%d",&valInt32);
|
||||
if (typeError > 0)
|
||||
rv = statement->BindInt32Parameter(index, valInt32);
|
||||
rv = statement->BindInt32ByIndex(index, valInt32);
|
||||
break;
|
||||
case 2:
|
||||
typeError = PR_sscanf(NS_ConvertUTF16toUTF8(value).get(),"%lld",&valInt64);
|
||||
if (typeError > 0)
|
||||
rv = statement->BindInt64Parameter(index, valInt64);
|
||||
rv = statement->BindInt64ByIndex(index, valInt64);
|
||||
break;
|
||||
case 3:
|
||||
rv = statement->BindNullParameter(index);
|
||||
rv = statement->BindNullByIndex(index);
|
||||
break;
|
||||
case 4:
|
||||
typeError = PR_sscanf(NS_ConvertUTF16toUTF8(value).get(),"%lf",&valFloat);
|
||||
if (typeError > 0)
|
||||
rv = statement->BindDoubleParameter(index, valFloat);
|
||||
rv = statement->BindDoubleByIndex(index, valFloat);
|
||||
break;
|
||||
case 5:
|
||||
case nsIContent::ATTR_MISSING:
|
||||
rv = statement->BindStringParameter(index, value);
|
||||
rv = statement->BindStringByIndex(index, value);
|
||||
break;
|
||||
default:
|
||||
typeError = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user