Convert all remaining enums to enum classes (!)

This commit is contained in:
Jérôme Leclercq
2021-05-25 00:08:50 +02:00
parent 8cdd0b51cb
commit 874fb3542e
122 changed files with 1082 additions and 2169 deletions

View File

@@ -51,7 +51,7 @@ namespace Nz::GL
return CreateInternal(configs[configIndex], shareContext);
}
bool EGLContextBase::Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext)
bool EGLContextBase::Create(const ContextParams& /*params*/, WindowHandle /*window*/, const EGLContextBase* /*shareContext*/)
{
NazaraError("Unexpected context creation call");
return false;
@@ -140,7 +140,7 @@ namespace Nz::GL
};
EGLint numConfig = 0;
if (m_loader.eglChooseConfig(m_display, configAttributes, configs, maxConfigCount, &numConfig) != GL_TRUE)
if (m_loader.eglChooseConfig(m_display, configAttributes, configs, EGLint(maxConfigCount), &numConfig) != GL_TRUE)
{
NazaraError(std::string("failed to retrieve compatible EGL configurations: ") + EGLLoader::TranslateError(m_loader.eglGetError()));
return false;

View File

@@ -202,7 +202,7 @@ namespace Nz::GL
}
}
bool EGLLoader::ImplementFallback(const std::string_view& function)
bool EGLLoader::ImplementFallback(const std::string_view& /*function*/)
{
return false;
}