Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit 64f66e3

Browse files
rnburnisaachier
authored andcommitted
Don't use forwarding reference. (#11)
Signed-off-by: Ryan Burn <[email protected]>
1 parent 60de3d3 commit 64f66e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jaegertracing/utils/YAML.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ namespace yaml {
2929

3030
template <typename ValueType, typename KeyType, typename DefaultValueType>
3131
ValueType findOrDefault(const YAML::Node& node,
32-
KeyType&& key,
33-
DefaultValueType&& defaultValue)
32+
const KeyType& key,
33+
const DefaultValueType& defaultValue)
3434
{
3535
const auto valueNode = node[key];
3636
if (!valueNode.IsDefined()) {

0 commit comments

Comments
 (0)