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