diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-11 00:01:36 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-10 20:19:45 -0700 |
commit | d99b00a149e7828adb3c4651069483e51b0b458b (patch) | |
tree | 33f07f9d18dd006d10b14ff2dffbcbe337809d0c /src/gui/updatewindow.cpp | |
parent | d268447e18c6e3edd80658f8f8d4317740c33af9 (diff) | |
download | mana-d99b00a149e7828adb3c4651069483e51b0b458b.tar.gz mana-d99b00a149e7828adb3c4651069483e51b0b458b.tar.bz2 mana-d99b00a149e7828adb3c4651069483e51b0b458b.tar.xz mana-d99b00a149e7828adb3c4651069483e51b0b458b.zip |
Removed many pointless comparisons with NULL
Sometimes it's nice for clarity, but most of the time this is just
clutter. C++ != Java. :)
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r-- | src/gui/updatewindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 29e7e763..5a6f3f28 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -206,7 +206,7 @@ void UpdaterWindow::loadNews() // Tokenize and add each line separately char *line = strtok(mMemoryBuffer, "\n"); - while (line != NULL) + while (line) { mBrowserBox->addRow(line); line = strtok(NULL, "\n"); @@ -409,7 +409,7 @@ void UpdaterWindow::download() mDownloadComplete = false; mThread = SDL_CreateThread(UpdaterWindow::downloadThread, this); - if (mThread == NULL) + if (!mThread) { logger->log(_("Unable to create mThread")); mDownloadStatus = UPDATE_ERROR; |