Bug 1290337 - Part 18: Replace Value parameter to const Value& in ipc. r=smaug

This commit is contained in:
Tooru Fujisawa 2016-09-11 18:15:24 +09:00
parent d7c8c69a03
commit 1ef63c4562
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ TestShellParent::CommandDone(TestShellCommandParent* command,
bool bool
TestShellCommandParent::SetCallback(JSContext* aCx, TestShellCommandParent::SetCallback(JSContext* aCx,
JS::Value aCallback) const JS::Value& aCallback)
{ {
if (!mCallback.initialized()) { if (!mCallback.initialized()) {
mCallback.init(aCx, aCallback); mCallback.init(aCx, aCallback);

View File

@ -42,7 +42,7 @@ class TestShellCommandParent : public PTestShellCommandParent
public: public:
TestShellCommandParent() {} TestShellCommandParent() {}
bool SetCallback(JSContext* aCx, JS::Value aCallback); bool SetCallback(JSContext* aCx, const JS::Value& aCallback);
bool RunCallback(const nsString& aResponse); bool RunCallback(const nsString& aResponse);