summaryrefslogtreecommitdiff
path: root/src/log.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
commite5f795ad9952b8bba6993ee3e324b22a0f104816 (patch)
tree1602ac0f74865135eae5acf935b0a285a8e918c2 /src/log.cpp
parent7593d6c71e2331c3e43c732db60ad03ee4d5385d (diff)
downloadmana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.gz
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.bz2
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.xz
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.zip
Made all class members named like mClassMember.
Diffstat (limited to 'src/log.cpp')
-rw-r--r--src/log.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/log.cpp b/src/log.cpp
index 78db9eff..d2f1e125 100644
--- a/src/log.cpp
+++ b/src/log.cpp
@@ -34,17 +34,17 @@
Logger::~Logger()
{
- if (logFile.is_open())
+ if (mLogFile.is_open())
{
- logFile.close();
+ mLogFile.close();
}
}
void Logger::setLogFile(const std::string &logFilename)
{
- logFile.open(logFilename.c_str(), std::ios_base::trunc);
+ mLogFile.open(logFilename.c_str(), std::ios_base::trunc);
- if (!logFile.is_open())
+ if (!mLogFile.is_open())
{
std::cout << "Warning: error while opening " << logFilename <<
" for writing.\n";
@@ -53,7 +53,7 @@ void Logger::setLogFile(const std::string &logFilename)
void Logger::log(const char *log_text, ...)
{
- if (!logFile.is_open()) {
+ if (!mLogFile.is_open()) {
return;
}
@@ -82,7 +82,7 @@ void Logger::log(const char *log_text, ...)
timeStr << (int)(t % 60);
timeStr << "] ";
- logFile << timeStr.str() << buf << std::endl;
+ mLogFile << timeStr.str() << buf << std::endl;
// Delete temporary buffer
delete[] buf;