Skip to content

Commit

Permalink
Add move semantic
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Jun 9, 2024
1 parent 15841fa commit 6977776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/po_file_review.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ namespace i18n_check
L"(Positional and non-positional commands mixed in the same printf string.)";
}
adjustedCommands.clear();
for (const auto& posArg : positionalCommands)
for (auto& posArg : positionalCommands)
{
adjustedCommands.push_back(posArg.second);
adjustedCommands.push_back(std::move(posArg.second));
}
}

Expand Down

0 comments on commit 6977776

Please sign in to comment.