]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix Coverity CID 1523748: Performance inefficiencies in dolog.hh
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 2 Nov 2023 08:40:21 +0000 (09:40 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 2 Nov 2023 08:40:21 +0000 (09:40 +0100)
commit7e01b698ef441ff4961f8703246f2f7274b8ae7d
treef5dd092234ae723cfe910a4bd58697bca4845328
parent62afcc57871a0d3dea74e7ca20289ab9b96d39cd
dnsdist: Fix Coverity CID 1523748: Performance inefficiencies in dolog.hh

Coverity reports:
```
Performance inefficiencies (COPY_INSTEAD_OF_MOVE): "args" is
passed-by-value as parameter to "dolog" when it could be moved instead.
```
This PR implements perfect forwarding for the variadic template parameters
of DNSdist's logging methods to address it, even though the performance of
these functions should not matter much.
pdns/dolog.hh