1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

[General] Fix Clang warnings in Log.hpp

This commit is contained in:
Koncord 2017-10-18 21:23:05 +08:00
parent 0a0c9893b1
commit d702845026

View file

@ -25,8 +25,8 @@
#define LOG_APPEND(level, msg, ...) Log::Get().print((level), (0), (0), (0), (msg), __VA_ARGS__)
#else
#define LOG_MESSAGE(level, msg, args...) Log::Get().print((level), (1), (__FILE__), (__LINE__), (msg), ##args)
#define LOG_MESSAGE_SIMPLE(level, msg, args...) Log::Get().print((level), (1), (0), (0), (msg), ##args)
#define LOG_APPEND(level, msg, args...) Log::Get().print((level), (0), (0), (0), (msg), ##args)
#define LOG_MESSAGE_SIMPLE(level, msg, args...) Log::Get().print((level), (true), (0), (0), (msg), ##args)
#define LOG_APPEND(level, msg, args...) Log::Get().print((level), (false), (0), (0), (msg), ##args)
#endif
#endif
@ -48,12 +48,11 @@ public:
void print(int level, bool hasPrefix, const char *file, int line, const char *message, ...) const;
static std::string getFilenameTimestamp();
private:
Log(int logLevel);
/// Not implemented
Log(const Log &) = delete;
/// Not implemented
Log &operator=(Log &) = delete;
private:
explicit Log(int logLevel);
static Log *sLog;
int logLevel;
};