Skip to content

Commit

Permalink
CID 1524379, 1524381 : use std::move() instead of copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 authored and antonsviridenko committed Jan 23, 2024
1 parent e058546 commit cb02965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/pgp-key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ pgp_key_t::del_uid(size_t idx)
}
newsigs.push_back(id);
}
sigs_ = newsigs;
sigs_ = std::move(newsigs);
uids_.erase(uids_.begin() + idx);
/* update uids */
if (idx == uids_.size()) {
Expand Down
2 changes: 1 addition & 1 deletion src/rnp/fficli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3027,7 +3027,7 @@ cli_rnp_process_file(cli_rnp_t *rnp)
goto done;
}
if (src.empty()) {
src = in;
src = std::move(in);
/* cannot fail as we checked for extension previously */
strip_extension(src);
}
Expand Down

0 comments on commit cb02965

Please sign in to comment.