Bug 645101 - Stop using [deprecated] Storage methods (nsXULTemplateQueryProcessorStorage)
authorShawn Wilsher <me@shawnwilsher.com>
Thu, 31 Mar 2011 10:19:31 -0700
changeset 64478 e40f129fb8a2dc99685d58f4053144d2077ab10c
parent 64477 0e91972f0cb6fda4fc56faf8cb3e9950ebe5d929
child 64479 bf086232471bc99d03f5eb98da0547d2be46a318
push id19353
push usersdwilsh@shawnwilsher.com
push dateThu, 31 Mar 2011 17:46:51 +0000
treeherdermozilla-central@76fbb32b78af [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs645101
milestone2.2a1pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 645101 - Stop using [deprecated] Storage methods (nsXULTemplateQueryProcessorStorage) r=sicking
content/xul/templates/src/nsXULTemplateQueryProcessorStorage.cpp
--- a/content/xul/templates/src/nsXULTemplateQueryProcessorStorage.cpp
+++ b/content/xul/templates/src/nsXULTemplateQueryProcessorStorage.cpp
@@ -370,34 +370,34 @@ nsXULTemplateQueryProcessorStorage::Comp
             PRInt64 valInt64 = 0;
             PRFloat64 valFloat = 0;
 
             switch (typeValue) {
               case 0:
               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;
             }
 
             if (typeError <= 0) {
                 nsXULContentUtils::LogTemplateError(ERROR_TEMPLATE_STORAGE_WRONG_TYPE_QUERY_PARAMETER);
                 return rv;