aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-01-19 02:23:08 +0000
committernyamatongwe <devnull@localhost>2010-01-19 02:23:08 +0000
commitc074b51e15845a103bfe572ef569717e2d841db7 (patch)
treee2889405204460f4c67210732647c7a656c00d60 /src
parentbeee79cf3129dcf520ea6afd8d2ea4bf371a15bc (diff)
downloadscintilla-mirror-c074b51e15845a103bfe572ef569717e2d841db7.tar.gz
Removed unnecessary check for NULL.
Diffstat (limited to 'src')
-rw-r--r--src/CallTip.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx
index 511282eab..3ea2d48fd 100644
--- a/src/CallTip.cxx
+++ b/src/CallTip.cxx
@@ -254,8 +254,7 @@ PRectangle CallTip::CallTipStart(int pos, Point pt, const char *defn,
const char *faceName, int size,
int codePage_, int characterSet, Window &wParent) {
clickPlace = 0;
- if (val)
- delete []val;
+ delete []val;
val = 0;
val = new char[strlen(defn) + 1];
strcpy(val, defn);