🚨 Rename a local that shadowed the localization text property
The unit did not compile standalone because the serialize routine declared a variable with the name of the published property.
This commit is contained in:
@@ -73,14 +73,14 @@ end;
|
||||
procedure TLocalizationEntry.Serialize(Data: TStream);
|
||||
var
|
||||
iLength: SmallInt;
|
||||
text: string;
|
||||
encodedText: string;
|
||||
begin
|
||||
Data.Write(FNumber, SizeOf(Integer));
|
||||
Data.Write(FUnknown, SizeOf(Byte));
|
||||
text := UTF8Encode(FText);
|
||||
iLength := Length(text);
|
||||
encodedText := UTF8Encode(FText);
|
||||
iLength := Length(encodedText);
|
||||
Data.Write(iLength, SizeOf(SmallInt));
|
||||
Data.Write(PChar(text)^, iLength);
|
||||
Data.Write(PChar(encodedText)^, iLength);
|
||||
end;
|
||||
|
||||
function TLocalizationEntry.GetSize: Integer;
|
||||
|
||||
Reference in New Issue
Block a user