Apply suggestions from code review

Co-Authored-By: valentinvanelslande <valentinvanelslandeacnl@gmail.com>
This commit is contained in:
Mat M 2018-12-28 21:00:09 -05:00 committed by GitHub
parent 7c95032e3a
commit 90965525ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 10 deletions

View file

@ -133,7 +133,7 @@ void CreateProfile(std::string name) {
profile.udp_input_address = values.udp_input_address;
profile.udp_input_port = values.udp_input_port;
profile.udp_pad_index = values.udp_pad_index;
values.profiles.push_back(profile);
values.profiles.push_back(std::move(profile));
values.profile = static_cast<int>(values.profiles.size()) - 1;
LoadProfile(values.profile);
}