Moved consts to the namespace

This commit is contained in:
Vladyslav Baranovskyi
2024-06-04 11:18:01 +03:00
parent 4e5b9319e6
commit e17e8c2947

View File

@@ -14,6 +14,13 @@
namespace OpenVulkano
{
namespace
{
const char *NUM_THREADS_STR = "num_threads";
const char *FRAMEBUFFER_CLEAR_COLOR_STR = "framebuffer_clear_color";
const char *PREFER_FRAMEBUFFER_FORMAT_SRGB_STR = "prefer_framebuffer_format_srgb";
}
EngineConfiguration::EngineConfiguration()
{
const std::string filePath = AppFolders::GetAppConfigHomeDir().string() + "/EngineConfig.yml";
@@ -22,11 +29,7 @@ namespace OpenVulkano
{
return;
}
const char *NUM_THREADS_STR = "num_threads";
const char *FRAMEBUFFER_CLEAR_COLOR_STR = "framebuffer_clear_color";
const char *PREFER_FRAMEBUFFER_FORMAT_SRGB_STR = "prefer_framebuffer_format_srgb";
file.seekg(0, std::ios::end);
size_t size = file.tellg();
std::string buffer(size, ' ');