diff options
author | nyamatongwe <devnull@localhost> | 2004-04-24 12:22:29 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2004-04-24 12:22:29 +0000 |
commit | 77b97d3af339f06eb2b43b1372361e4e6d52a127 (patch) | |
tree | 3aa851d2ab0c94a39cae37e03ef43141a143c55b /include/SString.h | |
parent | 1a35ab4d6070771c4ef6aaab32f78dee1f0cf178 (diff) | |
download | scintilla-mirror-77b97d3af339f06eb2b43b1372361e4e6d52a127.tar.gz |
Removed SString::attach as rolw now perfromed by
constructor from SBuffer.
Diffstat (limited to 'include/SString.h')
-rw-r--r-- | include/SString.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/SString.h b/include/SString.h index afe1a902c..5c2a93d33 100644 --- a/include/SString.h +++ b/include/SString.h @@ -206,18 +206,6 @@ public: const char *c_str() const { return s ? s : ""; } - /** Attach to a string allocated by means of StringAlloc(len). */ - SString &attach(char *s_, lenpos_t sLen_ = measure_length, lenpos_t sSize_ = measure_length) { - delete []s; - s = s_; - if (!s) { - sLen = sSize = 0; - } else { - sLen = (sLen_ == measure_length ? strlen(s) : sLen_); - sSize = (sSize_ == measure_length ? sLen + 1 : sSize_); - } - return *this; - } /** Give ownership of buffer to caller which must use delete[] to free buffer. */ char *detach() { char *sRet = s; |