mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
Issue #32: Removed C++ variable list initialization due to compiler conflicts.
This commit is contained in:
@@ -20,8 +20,8 @@ private:
|
||||
static std::string const & getRoot()
|
||||
{
|
||||
static char const * envRoot = getenv("LOGL_ROOT_PATH");
|
||||
static char const * givenRoot {envRoot != nullptr ? envRoot : logl_root};
|
||||
static std::string root {givenRoot != nullptr ? givenRoot : ""};
|
||||
static char const * givenRoot = (envRoot != nullptr ? envRoot : logl_root);
|
||||
static std::string root = (givenRoot != nullptr ? givenRoot : "");
|
||||
return root;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user