mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-25 12:58:37 +00:00
use emplace_back()'s return to swap string
This commit is contained in:
parent
03a70c5a2d
commit
aa3d399f9d
@ -65,8 +65,7 @@ std::vector<std::string> win32_read_argv(const std::string& input)
|
||||
std::vector<std::string> res;
|
||||
|
||||
while(win32_parse_single_arg(start, end, buffer)) {
|
||||
res.emplace_back();
|
||||
res.back().swap(buffer);
|
||||
res.emplace_back().swap(buffer);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user