Removed lazy argument evaluation from macros

This commit is contained in:
gabime
2019-11-03 15:19:59 +02:00
parent 15b393193a
commit cae6c9ab36
5 changed files with 16 additions and 22 deletions

View File

@@ -30,7 +30,7 @@ SPDLOG_INLINE void file_helper::open(const filename_t &fname, bool truncate)
close();
filename_ = fname;
auto *mode = truncate ? SPDLOG_FILENAME_T("wb") : SPDLOG_FILENAME_T("ab");
for (int tries = 0; tries < open_tries_; ++tries)
{
// create containing folder if not exists already.

View File

@@ -485,7 +485,7 @@ SPDLOG_INLINE bool create_dir(filename_t path)
return true;
}
if(path.empty())
if (path.empty())
{
return false;
}