DescriptionAvoid dependency on unspecified evaluation order of parameters.
According to the standard, "the order of evaluation of arguments is
unspecified. All side effects of argument expression evaluations take
effect before the function is entered."
This mean that |site| may be moved before |site.url| or |IconType|
are evaluated, thus having them access a moved object (returning
unspecified values).
BUG=None
Review-Url: https://codereview.chromium.org/2737873002
Cr-Commit-Position: refs/heads/master@{#455515}
Committed: https://chromium.googlesource.com/chromium/src/+/2bc5b5fb3da0c205a025535faff4fb160ca6467a
Patch Set 1 #
Total comments: 2
Patch Set 2 : Update comment. #Messages
Total messages: 14 (9 generated)
|