mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-25 05:04:07 +01:00
Codechange: Pass std::string_view from drivers instead of char *.
This commit is contained in:
committed by
Peter Nelson
parent
a42aa1a086
commit
332cbca36e
@@ -576,7 +576,7 @@ bool VideoDriver_SDL::PollEvent()
|
||||
return true;
|
||||
}
|
||||
|
||||
const char *VideoDriver_SDL::Start(const StringList ¶m)
|
||||
std::optional<std::string_view> VideoDriver_SDL::Start(const StringList ¶m)
|
||||
{
|
||||
char buf[30];
|
||||
_use_hwpalette = GetDriverParamInt(param, "hw_palette", 2);
|
||||
@@ -607,7 +607,7 @@ const char *VideoDriver_SDL::Start(const StringList ¶m)
|
||||
|
||||
this->is_game_threaded = !GetDriverParamBool(param, "no_threads") && !GetDriverParamBool(param, "no_thread");
|
||||
|
||||
return nullptr;
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
void VideoDriver_SDL::SetupKeyboard()
|
||||
|
||||
Reference in New Issue
Block a user