Fix some performance-related warnings reported by cppcheck.
Pull request: https://github.com/WebKit/WebKit/pull/12268
Committed 262468@main (4d53eb48f4c6): <https://commits.webkit.org/262468@main> Reviewed commits have been landed. Closing PR #12268 and removing active labels.
<rdar://problem/107504353>