Bug 1290337 - Part 20: Replace Value parameter to const Value& in storage. r=mak

This commit is contained in:
Tooru Fujisawa 2016-09-11 18:21:36 +09:00
parent daced00575
commit a274ab4345
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ checkAndLogStatementPerformance(sqlite3_stmt *aStatement)
nsIVariant *
convertJSValToVariant(
JSContext *aCtx,
JS::Value aValue)
const JS::Value& aValue)
{
if (aValue.isInt32())
return new IntegerVariant(aValue.toInt32());

View File

@ -65,7 +65,7 @@ void checkAndLogStatementPerformance(sqlite3_stmt *aStatement);
* @return the variant if conversion was successful, nullptr if conversion
* failed. The caller is responsible for addref'ing if non-null.
*/
nsIVariant *convertJSValToVariant(JSContext *aCtx, JS::Value aValue);
nsIVariant *convertJSValToVariant(JSContext *aCtx, const JS::Value& aValue);
/**
* Convert a provided nsIVariant implementation to our own thread-safe