Reduce needless use of wchar / stringw

This commit is contained in:
sfan5
2024-02-18 16:29:03 +01:00
parent 2894d9ab03
commit 19819bd23a
16 changed files with 34 additions and 104 deletions

View File

@ -159,9 +159,9 @@ COGLES2Driver::~COGLES2Driver()
io::IReadFile* vsFile = FileSystem->createAndOpenFile(vsPath);
if ( !vsFile )
{
core::stringw warning(L"Warning: Missing shader files needed to simulate fixed function materials:\n");
warning += core::stringw(vsPath) + L"\n";
warning += L"Shaderpath can be changed in SIrrCreationParamters::OGLES2ShaderPath";
std::string warning("Warning: Missing shader files needed to simulate fixed function materials:\n");
warning.append(vsPath.c_str()).append("\n");
warning += "The path can be changed in SIrrCreationParamters::OGLES2ShaderPath";
os::Printer::log(warning.c_str(), ELL_WARNING);
return;
}
@ -169,9 +169,9 @@ COGLES2Driver::~COGLES2Driver()
io::IReadFile* fsFile = FileSystem->createAndOpenFile(fsPath);
if ( !fsFile )
{
core::stringw warning(L"Warning: Missing shader files needed to simulate fixed function materials:\n");
warning += core::stringw(fsPath) + L"\n";
warning += L"Shaderpath can be changed in SIrrCreationParamters::OGLES2ShaderPath";
std::string warning("Warning: Missing shader files needed to simulate fixed function materials:\n");
warning.append(fsPath.c_str()).append("\n");
warning += "The path can be changed in SIrrCreationParamters::OGLES2ShaderPath";
os::Printer::log(warning.c_str(), ELL_WARNING);
return;
}
@ -1858,7 +1858,7 @@ COGLES2Driver::~COGLES2Driver()
//! \return Returns the name of the video driver.
const wchar_t* COGLES2Driver::getName() const
const char* COGLES2Driver::getName() const
{
return Name.c_str();
}