Commit 79963ce7 authored by Kevin McNee's avatar Kevin McNee Committed by Commit Bot

Use static_cast instead of reinterpret_cast for downcasting

static_cast is better suited for downcasting since it can check that the
types are related.

/content/renderer/pepper
This CL was uploaded by git cl split.

R=raymes@chromium.org

Change-Id: I7a8be6603564a805c85b254fee8dcf24fee6b30f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2434630
Auto-Submit: Kevin McNee <mcnee@chromium.org>
Reviewed-by: default avatarRaymes Khoury <raymes@chromium.org>
Commit-Queue: Raymes Khoury <raymes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811442}
parent d9391fb9
...@@ -320,8 +320,7 @@ void SetPPTouchPoints(const WebTouchPoint* touches, ...@@ -320,8 +320,7 @@ void SetPPTouchPoints(const WebTouchPoint* touches,
void AppendTouchEvent(const WebInputEvent& event, void AppendTouchEvent(const WebInputEvent& event,
std::vector<InputEventData>* result_events) { std::vector<InputEventData>* result_events) {
const WebTouchEvent& touch_event = const WebTouchEvent& touch_event = static_cast<const WebTouchEvent&>(event);
reinterpret_cast<const WebTouchEvent&>(event);
InputEventData result = GetEventWithCommonFieldsAndType(event); InputEventData result = GetEventWithCommonFieldsAndType(event);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment