diff options
| author | Rat <gmstreetrat@gmail.com> | 2012-01-01 22:31:48 +0100 |
|---|---|---|
| committer | Rat <gmstreetrat@gmail.com> | 2012-01-01 22:31:48 +0100 |
| commit | 0e950d5e467a63827d1e280929a2e5bd36e6dc98 (patch) | |
| tree | 41c3424fe560ee1a338140203ffdf1b1ae7b6469 /dep/g3dlite/source/Log.cpp | |
| parent | bff7c18251e8c16dfbe3f4484a76d8df76f05076 (diff) | |
| parent | b1e19257bcd80427986cbb670cbc69c45d6154b6 (diff) | |
Merge branch '4.x' of git://github.com/TrinityCore/TrinityCore into 4.x
Diffstat (limited to 'dep/g3dlite/source/Log.cpp')
| -rw-r--r-- | dep/g3dlite/source/Log.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dep/g3dlite/source/Log.cpp b/dep/g3dlite/source/Log.cpp index f437351cfbd..d44d88d0242 100644 --- a/dep/g3dlite/source/Log.cpp +++ b/dep/g3dlite/source/Log.cpp @@ -23,23 +23,23 @@ namespace G3D { void logPrintf(const char* fmt, ...) { - va_list arg_list; - va_start(arg_list, fmt); + va_list arg_list; + va_start(arg_list, fmt); Log::common()->vprintf(fmt, arg_list); va_end(arg_list); } void logLazyPrintf(const char* fmt, ...) { - va_list arg_list; - va_start(arg_list, fmt); + va_list arg_list; + va_start(arg_list, fmt); Log::common()->lazyvprintf(fmt, arg_list); va_end(arg_list); } Log* Log::commonLog = NULL; -Log::Log(const std::string& filename, int stripFromStackBottom) : +Log::Log(const std::string& filename, int stripFromStackBottom) : stripFromStackBottom(stripFromStackBottom) { this->filename = filename; @@ -50,7 +50,7 @@ Log::Log(const std::string& filename, int stripFromStackBottom) : std::string drive, base, ext; Array<std::string> path; parseFilename(filename, drive, path, base, ext); - std::string logName = base + ((ext != "") ? ("." + ext) : ""); + std::string logName = base + ((ext != "") ? ("." + ext) : ""); // Write time is greater than 1ms. This may be a network drive.... try another file. #ifdef G3D_WIN32 @@ -80,7 +80,7 @@ Log::Log(const std::string& filename, int stripFromStackBottom) : Log::~Log() { section("Shutdown"); println("Closing log file"); - + // Make sure we don't leave a dangling pointer if (Log::commonLog == this) { Log::commonLog = NULL; |
