mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
uemis downloader: use move instead of copy to return string
Found by Coverity. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f78662acce
commit
1578c7be99
1 changed files with 1 additions and 1 deletions
|
@ -670,7 +670,7 @@ static std::string uemis_get_answer(const std::string &path, const std::string &
|
|||
for (i = 0; i < n_param_out; i++)
|
||||
report_info("::: %d: %s\n", i, param_buff[i].c_str());
|
||||
#endif
|
||||
return found_answer ? mbuf : std::string();
|
||||
return found_answer ? std::move(mbuf) : std::string();
|
||||
fs_error:
|
||||
close(ans_file);
|
||||
return std::string();
|
||||
|
|
Loading…
Add table
Reference in a new issue