summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-01 20:49:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 00:37:51 +0300
commit4df121e6dcdf53436f50ce81dd60096ce0138a2c (patch)
tree7cadc707bb49e4c148ba9c182075697a9643e20a /src/logger.h
parented3410d7eb61593a2235ddba97ce257c85e405a6 (diff)
downloadplus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.gz
plus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.bz2
plus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.xz
plus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.zip
Add const to more classes.
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h10
1 files changed, 5 insertions, 5 deletions
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; }
/**