mirror of https://git.suyu.dev/suyu/suyu
service/nvdrv: Take std::string in Open() by const reference
Avoids copies from being made, since the string is only ever used for lookup, the data is never transfered anywhere. Ideally, we'd use a std::string_view here, but devices is a std::unordered_map, not a std::map, so we can't use heterogenous lookup here.merge-requests/60/head
parent
a2cd07d094
commit
f9951352f6
Loading…
Reference in New Issue