Apply suggestions from code review
Co-Authored-By: valentinvanelslande <valentinvanelslandeacnl@gmail.com>
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -117,8 +117,8 @@ struct Values {
|
||||
u16 udp_input_port;
|
||||
u8 udp_pad_index;
|
||||
|
||||
int profile; ///< The current input profile index
|
||||
std::vector<InputProfile> profiles; ///< The list of input profiles
|
||||
int current_input_profile; ///< The current input profile index
|
||||
std::vector<InputProfile> input_profiles; ///< The list of input profiles
|
||||
|
||||
// Core
|
||||
bool use_cpu_jit;
|
||||
|
Reference in New Issue
Block a user