Skip to content

Commit

Permalink
remove useless std::move
Browse files Browse the repository at this point in the history
reported by clang tidy
  • Loading branch information
tjhei committed Jun 14, 2024
1 parent ae0b592 commit 1254d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/postprocess/particles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ namespace aspect

// ...then continue with writing our own data.
background_thread
= std::thread([ my_filename = std::move(filename),
= std::thread([ my_filename = filename, // filename is const, so we can not move from it
my_temporary_output_location = temporary_output_location,
my_file_contents = std::move(file_contents)]()
{
Expand Down

0 comments on commit 1254d24

Please sign in to comment.