mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 13:55:46 +00:00
nvflinger: Use std::string_view in OpenDisplay()
We don't need to use a std::string here, given all that's done is comparing the character sequence against another. This allows passing regular const char* without needing to heap allocate.
This commit is contained in:
parent
44f76e2cfd
commit
a907041218
2 changed files with 3 additions and 2 deletions
|
@ -43,7 +43,7 @@ NVFlinger::~NVFlinger() {
|
|||
CoreTiming::UnscheduleEvent(composition_event, 0);
|
||||
}
|
||||
|
||||
u64 NVFlinger::OpenDisplay(const std::string& name) {
|
||||
u64 NVFlinger::OpenDisplay(std::string_view name) {
|
||||
LOG_WARNING(Service, "Opening display {}", name);
|
||||
|
||||
// TODO(Subv): Currently we only support the Default display.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue