diff options
| author | nyamatongwe <unknown> | 2004-04-02 11:33:55 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2004-04-02 11:33:55 +0000 |
| commit | b745b468bb0d82b3406b86325f69d18d7cf791c2 (patch) | |
| tree | 94c976ec45aeaee9d82a43f8a37fe1a52125e9d2 /src/PropSet.cxx | |
| parent | 9cdfd99f604c738656504beb18ebe6c7dd8ba99c (diff) | |
| download | scintilla-mirror-b745b468bb0d82b3406b86325f69d18d7cf791c2.tar.gz | |
String code from Pavol Bosik used by Anjuta.
Diffstat (limited to 'src/PropSet.cxx')
| -rw-r--r-- | src/PropSet.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/PropSet.cxx b/src/PropSet.cxx index 32ec59626..70cd46f88 100644 --- a/src/PropSet.cxx +++ b/src/PropSet.cxx @@ -325,9 +325,18 @@ char *SString::StringAllocate( return sNew; } -// End SString functions - +/** + * Allocate uninitialized memory big enough to fit a string of the given length + * @return the pointer to the new string + */ +char *SString::StringAllocate(lenpos_t len) { + if (len != measure_length) + return new char [len + 1]; + else + return 0; +} +// End SString functions PropSet::PropSet() { superPS = 0; |
