diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-14 16:37:47 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-14 16:37:47 +1000 |
commit | 77b024eddb3a79eb22c61b743b6a369e457abf20 (patch) | |
tree | 76777c7b58917e7a31cfbf4a90352e8b97b78e6e /win32/PlatWin.cxx | |
parent | 1877c3dbf8b5132d3b7f95fe373d1d97961e4129 (diff) | |
download | scintilla-mirror-77b024eddb3a79eb22c61b743b6a369e457abf20.tar.gz |
Avoid using 0 as NULL pointer.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r-- | win32/PlatWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 4a4079b1e..68fb3f05b 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -418,7 +418,7 @@ FontID FontCached::FindOrCreate(const FontParameters &fp) { ret = cur->fid; } } - if (ret == 0) { + if (!ret) { FontCached *fc = new FontCached(fp); fc->next = first; first = fc; |