Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[embedlite] Get rid of unnecessary const_cast
Signed-off-by: Raine Makelainen <raine.makelainen@jolla.com>
  • Loading branch information
rainemak committed May 8, 2020
1 parent 957c864 commit e2932bb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -466,7 +466,7 @@ EmbedLiteViewBaseParent::ReceiveInputEvent(const mozilla::InputData& aEvent)
ScrollableLayerGuid guid;
uint64_t outInputBlockId;

mozilla::MultiTouchInput& multiTouchInput = const_cast<mozilla::InputData&>(aEvent).AsMultiTouchInput();
mozilla::MultiTouchInput multiTouchInput = aEvent.AsMultiTouchInput();
nsEventStatus apzResult = GetApzcTreeManager()->ReceiveInputEvent(multiTouchInput, &guid, &outInputBlockId);

// If the APZ says to drop it, then we drop it
Expand Down

0 comments on commit e2932bb

Please sign in to comment.