🚨 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:
2026-11-15 22:08:32 +01:00
parent 2b6f684505
commit ca8a0afc3b
+4 -4
View File
@@ -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;