Initialize with = instead of braces, and drop const from local autos
Scalars get = 0, = false or = nullptr. Standard containers and strings rely on their constructors.
Other types get = {} or = value, and lists keep = {...}.
glm types are left alone until they're replaced.
This commit is contained in:
1 parent
666f65bf3a
commit
40f6b554b5
138 files changed
+1500
-1500
No files matched your search
@@ -44,15 +44,15 @@
|
||||
|
||||
class Logger
|
||||
{
|
||||
std::filesystem::path logPath{};
|
||||
std::uintmax_t logSize{};
|
||||
std::mutex mutex{};
|
||||
std::thread stderrThread{};
|
||||
bool isStderrRedirecting{};
|
||||
bool isLogLimitReached{};
|
||||
int stderrPipeReadFd{-1};
|
||||
int stderrPipeWriteFd{-1};
|
||||
int stderrOriginalFd{-1};
|
||||
std::filesystem::path logPath;
|
||||
std::uintmax_t logSize = 0;
|
||||
std::mutex mutex;
|
||||
std::thread stderrThread;
|
||||
bool isStderrRedirecting = false;
|
||||
bool isLogLimitReached = false;
|
||||
int stderrPipeReadFd = -1;
|
||||
int stderrPipeWriteFd = -1;
|
||||
int stderrOriginalFd = -1;
|
||||
|
||||
void stderr_redirect_start();
|
||||
void stderr_redirect_stop();
|
||||
|
||||
Reference in new issue
Block a user