Bug 645101 - Stop using [deprecated] Storage methods (nsXULTemplateQueryProcessorStorage)

r=sicking
This commit is contained in:
Shawn Wilsher 2011-03-31 10:19:31 -07:00
parent 4f383e2f5d
commit db69572e5f

View File

@ -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;