diff options
author | nyamatongwe <unknown> | 2013-05-05 11:52:33 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-05-05 11:52:33 +1000 |
commit | d7acb6eca77b3a40f2cfcaf692de05dd532f4bf7 (patch) | |
tree | beb54c0553eb2e7b18b4165ac0d2d67f72ec0823 /win32/PlatWin.cxx | |
parent | 6de91394f22148840aa1c4daa3c297d1e09aa0c2 (diff) | |
download | scintilla-mirror-d7acb6eca77b3a40f2cfcaf692de05dd532f4bf7.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; |