mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
Performance likely does not matter here, but from a perspective of code-readablilty, a const reference should be preferred for read-only access. So use it here. This requires to set -Wno-error=dangling-reference for GCC 13.1 compilations, but this false-positive is fixed in later GCC versions. See also https://godbolt.org/z/fjc6be65M