diff --git a/includes/learnopengl/filesystem.h b/includes/learnopengl/filesystem.h index 80f1e88..5dc189c 100644 --- a/includes/learnopengl/filesystem.h +++ b/includes/learnopengl/filesystem.h @@ -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; }