diff options
author | nyamatongwe <devnull@localhost> | 2013-05-05 11:52:33 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-05 11:52:33 +1000 |
commit | 46f28c2d01bd405725df6e06d0eeb543bb9092f8 (patch) | |
tree | 623c7c1d96743351a979f0101943474730545ecb /win32/PlatWin.cxx | |
parent | 1cc7b583576574d94e038692608f73df96964485 (diff) | |
download | scintilla-mirror-46f28c2d01bd405725df6e06d0eeb543bb9092f8.tar.gz |
Since new throws an exception on failure, remove testing of result.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r-- | win32/PlatWin.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index b73f0fee7..c746bfcb2 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -407,11 +407,9 @@ FontID FontCached::FindOrCreate(const FontParameters &fp) { } if (ret == 0) { FontCached *fc = new FontCached(fp); - if (fc) { - fc->next = first; - first = fc; - ret = fc->fid; - } + fc->next = first; + first = fc; + ret = fc->fid; } ::LeaveCriticalSection(&crPlatformLock); return ret; |