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

View File

@@ -103,7 +103,7 @@ extern bool SafeLoad(const std::string &filename, SaveLoadOperation fop, Detaile
static FVideoDriver_Dedicated iFVideoDriver_Dedicated;
const char *VideoDriver_Dedicated::Start(const StringList &)
std::optional<std::string_view> VideoDriver_Dedicated::Start(const StringList &)
{
this->UpdateAutoResolution();
@@ -131,7 +131,7 @@ const char *VideoDriver_Dedicated::Start(const StringList &)
#endif
Debug(driver, 1, "Loading dedicated server");
return nullptr;
return std::nullopt;
}
void VideoDriver_Dedicated::Stop()