From db69572e5fe57711c724943ed0f93c01422ed6e7 Mon Sep 17 00:00:00 2001 From: Shawn Wilsher Date: Thu, 31 Mar 2011 10:19:31 -0700 Subject: [PATCH] Bug 645101 - Stop using [deprecated] Storage methods (nsXULTemplateQueryProcessorStorage) r=sicking --- .../src/nsXULTemplateQueryProcessorStorage.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/xul/templates/src/nsXULTemplateQueryProcessorStorage.cpp b/content/xul/templates/src/nsXULTemplateQueryProcessorStorage.cpp index 968c99b861e..282b9a3b216 100644 --- a/content/xul/templates/src/nsXULTemplateQueryProcessorStorage.cpp +++ b/content/xul/templates/src/nsXULTemplateQueryProcessorStorage.cpp @@ -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;