Codechange: use std::string for script log calls
This commit is contained in:
@@ -27,27 +27,27 @@ public:
|
||||
* @param message The message to log.
|
||||
* @note Special characters such as U+0000-U+0019 and U+E000-U+E1FF are not supported and removed or replaced by a question mark. This includes newlines and tabs.
|
||||
*/
|
||||
static void Info(const char *message);
|
||||
static void Info(const std::string &message);
|
||||
|
||||
/**
|
||||
* Print a Warning message to the logs.
|
||||
* @param message The message to log.
|
||||
* @note Special characters such as U+0000-U+0019 and U+E000-U+E1FF are not supported and removed or replaced by a question mark. This includes newlines and tabs.
|
||||
*/
|
||||
static void Warning(const char *message);
|
||||
static void Warning(const std::string &message);
|
||||
|
||||
/**
|
||||
* Print an Error message to the logs.
|
||||
* @param message The message to log.
|
||||
* @note Special characters such as U+0000-U+0019 and U+E000-U+E1FF are not supported and removed or replaced by a question mark. This includes newlines and tabs.
|
||||
*/
|
||||
static void Error(const char *message);
|
||||
static void Error(const std::string &message);
|
||||
|
||||
private:
|
||||
/**
|
||||
* Internal command to log the message in a common way.
|
||||
*/
|
||||
static void Log(ScriptLogTypes::ScriptLogType level, const char *message);
|
||||
static void Log(ScriptLogTypes::ScriptLogType level, const std::string &message);
|
||||
};
|
||||
|
||||
#endif /* SCRIPT_LOG_HPP */
|
||||
|
Reference in New Issue
Block a user