X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..1978421a6d8b81c1f8a961da4b8ddf544fec7b1b:/src/stc/scintilla/include/SString.h diff --git a/src/stc/scintilla/include/SString.h b/src/stc/scintilla/include/SString.h index 3c7ccc33a5..01602df781 100644 --- a/src/stc/scintilla/include/SString.h +++ b/src/stc/scintilla/include/SString.h @@ -238,7 +238,7 @@ public: return append(sOther, static_cast(measure_length)); } SString &operator+=(const SString &sOther) { - return append(sOther.s, sOther.sSize); + return append(sOther.s, sOther.sLen); } SString &operator+=(char ch) { return append(&ch, 1); @@ -369,11 +369,7 @@ public: */ inline char *StringDup( const char *s, ///< The string to duplicate - /* gcc 2.96 doesn't seem to like this syntax: gives - 'non-local function uses anonymous type' - SString::lenpos_t len=SString::measure_length) ///< The length of memory to allocate. Optional. - */ - SString::lenpos_t len=0xffffffffU) ///< The length of memory to allocate. Optional. + SString::lenpos_t len=SString::measure_length) ///< The length of memory to allocate. Optional. { return SString::StringAllocate(s, len); }