From 4df121e6dcdf53436f50ce81dd60096ce0138a2c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 1 Sep 2012 20:49:03 +0300 Subject: Add const to more classes. --- src/logger.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/logger.h') diff --git a/src/logger.h b/src/logger.h index e05d1c2d6..32b7d32c8 100644 --- a/src/logger.h +++ b/src/logger.h @@ -58,19 +58,19 @@ class Logger /** * Sets whether the log should be written to standard output. */ - void setLogToStandardOut(bool value) + void setLogToStandardOut(const bool value) { mLogToStandardOut = value; } /** * Enables logging to chat window */ - void setChatWindow(ChatWindow *window) + void setChatWindow(ChatWindow *const window) { mChatWindow = window; } /** * Enters a message in the log. The message will be timestamped. */ - void log(const char *log_text, ...) + void log(const char *const log_text, ...) #ifdef __GNUC__ __attribute__((__format__(gnu_printf, 2, 3))) #endif @@ -79,7 +79,7 @@ class Logger /** * Enters a message in the log. The message will be timestamped. */ - void log1(const char *log_text); + void log1(const char *const log_text); /** * Enters a message in the log. The message will be timestamped. @@ -91,7 +91,7 @@ class Logger */ void dlog(std::string str); - void setDebugLog(bool n) + void setDebugLog(const bool n) { mDebugLog = n; } /** -- cgit v1.2.3-70-g09d2