Eliminate object-copying in Media Router struct traits |
||
Issue descriptionPer the Mojo style guide [1], struct traits getters should return const refs instead of copies of objects. The remaining copies that we have are due to needing to create optional objects from non-optional ones. [1] https://chromium.googlesource.com/chromium/src/+/master/docs/security/mojo.md#StructTraits-getters-should-be-simple
,
Aug 2
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Nov 21 2017