aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-05-05 11:52:33 +1000
committernyamatongwe <unknown>2013-05-05 11:52:33 +1000
commitd7acb6eca77b3a40f2cfcaf692de05dd532f4bf7 (patch)
treebeb54c0553eb2e7b18b4165ac0d2d67f72ec0823 /gtk/PlatGTK.cxx
parent6de91394f22148840aa1c4daa3c297d1e09aa0c2 (diff)
downloadscintilla-mirror-d7acb6eca77b3a40f2cfcaf692de05dd532f4bf7.tar.gz
Since new throws an exception on failure, remove testing of result.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r--gtk/PlatGTK.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index 8e225d0a5..1227452b8 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -301,11 +301,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;
}
FontMutexUnlock();
return ret;