diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-11 00:01:36 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-11 00:01:36 +0100 |
commit | dbc6444d3086fa1b7afca4605600a0a0ae8ca394 (patch) | |
tree | 929a30503728e9f657c9a8820b3a9069b916343e /src/gui/truetypefont.cpp | |
parent | 8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618 (diff) | |
download | mana-dbc6444d3086fa1b7afca4605600a0a0ae8ca394.tar.gz mana-dbc6444d3086fa1b7afca4605600a0a0ae8ca394.tar.bz2 mana-dbc6444d3086fa1b7afca4605600a0a0ae8ca394.tar.xz mana-dbc6444d3086fa1b7afca4605600a0a0ae8ca394.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/truetypefont.cpp')
-rw-r--r-- | src/gui/truetypefont.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/truetypefont.cpp b/src/gui/truetypefont.cpp index 66855b77..8e6636df 100644 --- a/src/gui/truetypefont.cpp +++ b/src/gui/truetypefont.cpp @@ -91,7 +91,7 @@ TrueTypeFont::TrueTypeFont(const std::string &filename, int size) ++fontCounter; mFont = TTF_OpenFont(filename.c_str(), size); - if (mFont == NULL) + if (!mFont) { throw GCN_EXCEPTION("SDLTrueTypeFont::SDLTrueTypeFont: " + std::string(TTF_GetError())); |