diff options
author | nyamatongwe <devnull@localhost> | 2013-05-05 00:14:08 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-05 00:14:08 +1000 |
commit | 2bd357c7fa827511dc6548142c32a27a972c4e1b (patch) | |
tree | a3341015bc0be8dfc746b6c49a52f8b0ab949c99 /src/Editor.h | |
parent | dc758e3aac956c0d444ab5f65b16a3e35a437ce3 (diff) | |
download | scintilla-mirror-2bd357c7fa827511dc6548142c32a27a972c4e1b.tar.gz |
Removed nethods that are no longer used and are less safe than alternatives.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/Editor.h b/src/Editor.h index 51420cf1e..328bed8d0 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -91,20 +91,13 @@ public: Free(); } void Free() { - Set(0, 0, 0, 0, false, false); - } - void Set(char *s_, int len_, int codePage_, int characterSet_, bool rectangular_, bool lineCopy_) { delete []s; - s = s_; - if (s) - len = len_; - else - len = 0; - codePage = codePage_; - characterSet = characterSet_; - rectangular = rectangular_; - lineCopy = lineCopy_; - FixSelectionForClipboard(); + s = 0; + len = 0; + rectangular = false; + lineCopy = false; + codePage = 0; + characterSet = 0; } void Copy(const char *s_, int len_, int codePage_, int characterSet_, bool rectangular_, bool lineCopy_) { delete []s; |