Big f***ing cleanup part 1

This commit is contained in:
Lynix
2020-02-23 00:42:22 +01:00
parent 67d0e0a689
commit 3d22321109
178 changed files with 2190 additions and 5113 deletions

View File

@@ -41,7 +41,7 @@ namespace Nz
std::size_t length;
while ((length = std::strlen(deviceString)) > 0)
{
devices.push_back(String(deviceString, length));
devices.emplace_back(deviceString, length);
deviceString += length + 1;
}
@@ -140,7 +140,7 @@ namespace Nz
bool succeeded = false;
for (const char* path : libs)
{
String libPath(path);
std::filesystem::path libPath(path);
if (!s_library.Load(libPath))
continue;
@@ -248,7 +248,7 @@ namespace Nz
}
catch (const std::exception& e)
{
NazaraWarning(libPath + " loading failed: " + String(e.what()));
NazaraWarning(libPath.generic_u8string() + " loading failed: " + std::string(e.what()));
continue;
}
}