From d702845026a2b66bf7c67c5b7d1b83d38adabcd4 Mon Sep 17 00:00:00 2001 From: Koncord Date: Wed, 18 Oct 2017 21:23:05 +0800 Subject: [PATCH] [General] Fix Clang warnings in Log.hpp --- components/openmw-mp/Log.hpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/components/openmw-mp/Log.hpp b/components/openmw-mp/Log.hpp index 7483a3663..31d6565d9 100644 --- a/components/openmw-mp/Log.hpp +++ b/components/openmw-mp/Log.hpp @@ -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; };