Codechange: Pass std::string_view from drivers instead of char *.
This commit is contained in:
committed by
Peter Nelson
parent
a42aa1a086
commit
332cbca36e
@@ -19,7 +19,7 @@
|
||||
/** Factory for the null video driver. */
|
||||
static FVideoDriver_Null iFVideoDriver_Null;
|
||||
|
||||
const char *VideoDriver_Null::Start(const StringList &parm)
|
||||
std::optional<std::string_view> VideoDriver_Null::Start(const StringList &parm)
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
/* Disable the MSVC assertion message box. */
|
||||
@@ -39,7 +39,7 @@ const char *VideoDriver_Null::Start(const StringList &parm)
|
||||
/* Do not render, nor blit */
|
||||
Debug(misc, 1, "Forcing blitter 'null'...");
|
||||
BlitterFactory::SelectBlitter("null");
|
||||
return nullptr;
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
void VideoDriver_Null::Stop() { }
|
||||
|
||||
Reference in New Issue
Block a user