🚨 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); procedure TLocalizationEntry.Serialize(Data: TStream);
var var
iLength: SmallInt; iLength: SmallInt;
text: string; encodedText: string;
begin begin
Data.Write(FNumber, SizeOf(Integer)); Data.Write(FNumber, SizeOf(Integer));
Data.Write(FUnknown, SizeOf(Byte)); Data.Write(FUnknown, SizeOf(Byte));
text := UTF8Encode(FText); encodedText := UTF8Encode(FText);
iLength := Length(text); iLength := Length(encodedText);
Data.Write(iLength, SizeOf(SmallInt)); Data.Write(iLength, SizeOf(SmallInt));
Data.Write(PChar(text)^, iLength); Data.Write(PChar(encodedText)^, iLength);
end; end;
function TLocalizationEntry.GetSize: Integer; function TLocalizationEntry.GetSize: Integer;