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 | 213b87ec270c77e026d71ac1c83ac43ca1478a9f (patch) | |
tree | 78b36a3d6cc7ee13a9aa9a140fd235bb8caf04ad | |
parent | bdb6763e14287aed0ded6d347ce45f0343f84ac8 (diff) | |
download | scintilla-mirror-213b87ec270c77e026d71ac1c83ac43ca1478a9f.tar.gz |
Backport: Avoid using 0 as NULL pointer.
Backport of changeset 6948:b75edf4d00d3.
-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 d7d626742..19dd06d42 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; |