Commit 6a035d9
committed
remove unnecessary std::move when constructing RapidYamlError
From a compile warning:
jsonnet/core/vm.cpp:3484:30: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
3484 | throw RapidYamlError(std::move(msg.str()));
| ^
jsonnet/core/vm.cpp:3484:30: note: remove std::move call here
3484 | throw RapidYamlError(std::move(msg.str()));1 parent 654796e commit 6a035d9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3484 | 3484 | | |
3485 | 3485 | | |
3486 | 3486 | | |
3487 | | - | |
| 3487 | + | |
3488 | 3488 | | |
3489 | 3489 | | |
3490 | 3490 | | |
| |||
0 commit comments