Skip to content

Commit

Permalink
[embedlite] Passing arguments to InitGeckoWindow by value. Fixes JB#4…
Browse files Browse the repository at this point in the history
…9916
  • Loading branch information
paveltkv committed May 19, 2020
1 parent d4b0904 commit 4560773
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions embedshared/EmbedLiteViewBaseChild.cpp
Expand Up @@ -112,7 +112,7 @@ EmbedLiteViewBaseChild::EmbedLiteViewBaseChild(const uint32_t& aWindowId, const
mWindow = EmbedLiteAppBaseChild::GetInstance()->GetWindowByID(aWindowId);
MOZ_ASSERT(mWindow != nullptr);

MessageLoop::current()->PostTask(NewRunnableMethod<const uint32_t&, const bool &>
MessageLoop::current()->PostTask(NewRunnableMethod<const uint32_t, const bool>
(this,
&EmbedLiteViewBaseChild::InitGeckoWindow,
aParentId,
Expand Down Expand Up @@ -161,7 +161,7 @@ bool EmbedLiteViewBaseChild::RecvDestroy()
}

void
EmbedLiteViewBaseChild::InitGeckoWindow(const uint32_t& parentId, const bool& isPrivateWindow)
EmbedLiteViewBaseChild::InitGeckoWindow(const uint32_t parentId, const bool isPrivateWindow)
{
if (!mWindow) {
LOGT("Init called for already destroyed object");
Expand Down
2 changes: 1 addition & 1 deletion embedshared/EmbedLiteViewBaseChild.h
Expand Up @@ -211,7 +211,7 @@ class EmbedLiteViewBaseChild : public PEmbedLiteViewChild,
friend class EmbedLiteAppThreadChild;
friend class EmbedLiteAppBaseChild;

void InitGeckoWindow(const uint32_t& parentId, const bool& isPrivateWindow);
void InitGeckoWindow(const uint32_t parentId, const bool isPrivateWindow);
void InitEvent(WidgetGUIEvent& event, nsIntPoint* aPoint = nullptr);

uint32_t mId;
Expand Down

0 comments on commit 4560773

Please sign in to comment.