mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1290337 - Part 20: Replace Value parameter to const Value& in storage. r=mak
This commit is contained in:
parent
daced00575
commit
a274ab4345
@ -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());
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user