Skip to content

Commit

Permalink
Bug 1290337 - Part 20: Replace Value parameter to const Value& in sto…
Browse files Browse the repository at this point in the history
…rage. r=mak
  • Loading branch information
arai-a committed Sep 11, 2016
1 parent 3e64f01 commit 54c65fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion storage/mozStoragePrivateHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion storage/mozStoragePrivateHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54c65fc

Please sign in to comment.