use auto type when assigning from cast or using new

This commit is contained in:
Axel Kohlmeyer
2022-04-10 18:16:36 -04:00
parent 6071376d42
commit 39b316729b
365 changed files with 1195 additions and 1233 deletions

View File

@ -678,7 +678,7 @@ std::string platform::current_directory()
if (_getcwd(buf, MAX_PATH)) { cwd = buf; }
delete[] buf;
#else
char *buf = new char[PATH_MAX];
auto buf = new char[PATH_MAX];
if (::getcwd(buf, PATH_MAX)) { cwd = buf; }
delete[] buf;
#endif