Make InlinedStructPtr get() return null when null
For consistency with StructPtr and general developer expectations around APIs named get(), this changes InlinedStructPtr to return a nullptr when its internal state is NIL, rather than always returning a valid pointer. Bug: None Change-Id: Ia3e59af0374362b3a1e53b418b728336b99149c4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2461750 Commit-Queue: Ken Rockot <rockot@google.com> Auto-Submit: Ken Rockot <rockot@google.com> Reviewed-by:James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#815801}
Showing
Please register or sign in to comment