DescriptionReplacing const by value return values into const by ref in chrome/browser/extensions/api/identity
Returning a const reference to an object instead of a copy.
Returning a reference to an instance that's still in scope when the function returns, then it will be faster, as no copy of the oject is being created.
This CL turns const by value return values into const by ref
BUG=393155
Committed: https://crrev.com/8c96177b61a9dbb176a82b1732b41dd0154336b7
Cr-Commit-Position: refs/heads/master@{#327682}
Patch Set 1 #
Messages
Total messages: 9 (3 generated)
|