aboutsummaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-12-03 13:37:42 +0000
committerGravatar Sadie Powell2021-12-03 13:37:42 +0000
commit2466c048e26c09461b4ced2a9dfcf6d87f0e1323 (patch)
treea4575894c6945acef81eb3dd91a206879dbec2ac /src/logger.cpp
parentFix a bunch of cases where module types were not marked as final. (diff)
Consistently use `!foo` instead of `foo == NULL`.
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index d6c571af8..3c0985841 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -299,7 +299,7 @@ FileWriter::FileWriter(FILE* logfile, unsigned int flushcount)
void FileWriter::WriteLogLine(const std::string &line)
{
- if (log == NULL)
+ if (!log)
return;
// XXX: For now, just return. Don't throw an exception. It'd be nice to find out if this is happening, but I'm terrified of breaking so close to final release. -- w00t
// throw CoreException("FileWriter::WriteLogLine called with a closed logfile");