lcl: initialize special characters on TTextStrings construction (fixes issue #0015021)

git-svn-id: trunk@22485 -
This commit is contained in:
paul 2009-11-08 09:43:35 +00:00
parent 07cc515962
commit 6c561c5788

View File

@ -70,6 +70,7 @@ type
function HasObjects: boolean;
function CountLineEndings(const s: string): integer;
public
constructor Create;
destructor Destroy; override;
procedure Clear; override;
procedure SetText(TheText: PChar); override;
@ -306,6 +307,12 @@ begin
end;
end;
constructor TTextStrings.Create;
begin
inherited Create;
CheckSpecialChars;
end;
destructor TTextStrings.Destroy;
begin
Clear;