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. /components/paint_preview This CL was uploaded by git cl split. R=mahmoudi@chromium.org Change-Id: I64f78a148bd456e687c1f0948904776925d3ba3f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2435699 Auto-Submit: Kevin McNee <mcnee@chromium.org> Reviewed-by:Mehran Mahmoudi <mahmoudi@chromium.org> Commit-Queue: Mehran Mahmoudi <mahmoudi@chromium.org> Cr-Commit-Position: refs/heads/master@{#811733}
Showing
Please register or sign in to comment