Fixed bug in FString copy constructor
This commit is contained in:
parent
4107227119
commit
7ab1a6b353
|
@ -6,6 +6,7 @@
|
|||
* FRect can now combine two FRect objects
|
||||
* The FButtonGroup got the possibility of index access
|
||||
to a child button.
|
||||
* Fixed bug in FString copy constructor
|
||||
|
||||
2017-03-08 Markus Gans <guru.mail@muenster.de>
|
||||
* Improve input cursor positioning in FScrollView
|
||||
|
|
|
@ -112,13 +112,13 @@ FString::FString (uInt len, char c)
|
|||
|
||||
//----------------------------------------------------------------------
|
||||
FString::FString (const FString& s) // copy constructor
|
||||
: string(new wchar_t[FWDBUFFER + s.length + 1]())
|
||||
, length(s.length)
|
||||
, bufsize(FWDBUFFER + s.length + 1)
|
||||
: string(0)
|
||||
, length(0)
|
||||
, bufsize(0)
|
||||
, c_string(0)
|
||||
{
|
||||
if ( s.string )
|
||||
std::wcscpy (string, s.string);
|
||||
_replace (s.string);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue