Codechange: Pass std::string_view from drivers instead of char *.

This commit is contained in:
Peter Nelson
2024-04-09 02:47:14 +01:00
committed by Peter Nelson
parent a42aa1a086
commit 332cbca36e
52 changed files with 161 additions and 161 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ static DWORD WINAPI SoundThread(LPVOID)
return 0;
}
const char *SoundDriver_Win32::Start(const StringList &parm)
std::optional<std::string_view> SoundDriver_Win32::Start(const StringList &parm)
{
WAVEFORMATEX wfex;
wfex.wFormatTag = WAVE_FORMAT_PCM;
@@ -89,7 +89,7 @@ const char *SoundDriver_Win32::Start(const StringList &parm)
return error;
}
return nullptr;
return std::nullopt;
}
void SoundDriver_Win32::Stop()