Skip to content

Commit 89a8dc8

Browse files
mizdebskmkoncek
authored andcommitted
Remove redundant std::move on const reference
Eliminate unnecessary use of std::move when passing a value to a function that accepts a const reference. std::move has no effect in this context and may mislead readers about the intent.
1 parent 7cdffa9 commit 89a8dc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/jurand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Usage: jurand [optional flags] <matcher>... [file path]...
138138

139139
try
140140
{
141-
handle_file(std::move(files[index]), parameters);
141+
handle_file(files[index], parameters);
142142
}
143143
catch (std::exception& ex)
144144
{

0 commit comments

Comments
 (0)