diff --git a/src/lib/pgp-key.cpp b/src/lib/pgp-key.cpp index 47964127c5..57385f1d5c 100644 --- a/src/lib/pgp-key.cpp +++ b/src/lib/pgp-key.cpp @@ -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()) { diff --git a/src/rnp/fficli.cpp b/src/rnp/fficli.cpp index d00afc043a..e39f0f84c5 100644 --- a/src/rnp/fficli.cpp +++ b/src/rnp/fficli.cpp @@ -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); }