Skip to content
  • Lioncash's avatar
    service/nvdrv: Take std::string in Open() by const reference · f9951352
    Lioncash authored
    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.
    f9951352
Loading