Modify rule S5500: fix level of "How to fix it" section (CPP-5804) (#4398)

This commit is contained in:
Marco Borgeaud 2024-10-09 15:55:35 +02:00 committed by GitHub
parent 50b13ef2d3
commit d7be1f6bef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ and requires the explicit move `return std::move(p)`.
In contrast to returning local (stack) variables, named return value optimization (NRVO) In contrast to returning local (stack) variables, named return value optimization (NRVO)
does not apply to function parameters, so an explicit `std::move` call has no impact on optimizations. does not apply to function parameters, so an explicit `std::move` call has no impact on optimizations.
=== How to fix it == How to fix it
This issue can be resolved in multiple ways: This issue can be resolved in multiple ways: