🚨 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);
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user