Commit 4f15920f authored by Shawn Wilsher's avatar Shawn Wilsher
Browse files

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

r=sicking
parent 40a235bb
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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;