зеркало из https://github.com/mozilla/gecko-dev.git
Bug 645101 - Stop using [deprecated] Storage methods (nsXULTemplateQueryProcessorStorage)
r=sicking
This commit is contained in:
Родитель
40a235bbf9
Коммит
4f15920f2b
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче