diff options
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; |