mirror of https://github.com/rusefi/opendbc.git
CanPacker: removing unnecessary string copying (#940)
remove string copy
This commit is contained in:
parent
8f7e15202d
commit
33c7097321
|
@ -35,7 +35,7 @@ CANPacker::CANPacker(const std::string& dbc_name) {
|
|||
for (const auto& msg : dbc->msgs) {
|
||||
message_lookup[msg.address] = msg;
|
||||
for (const auto& sig : msg.sigs) {
|
||||
signal_lookup[std::make_pair(msg.address, std::string(sig.name))] = sig;
|
||||
signal_lookup[std::make_pair(msg.address, sig.name)] = sig;
|
||||
}
|
||||
}
|
||||
init_crc_lookup_tables();
|
||||
|
|
Loading…
Reference in New Issue