Skip to content

Commit b89b272

Browse files
committed
Cleaning some hints
1 parent 5e1e535 commit b89b272

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sources/MVCFramework.Serializer.JsonDataObjects.pas

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,7 +2313,6 @@ procedure TMVCJsonDataObjectsSerializer.JSONObjectToRecord(
23132313
const JSONObject: TJsonObject; RTTIType: TRttiRecordType; out Buffer: PByte);
23142314
var
23152315
lTypeSize: Integer;
2316-
lTypeInfo: PTypeInfo;
23172316
AIgnoredAttributes: TMVCIgnoredList;
23182317
lKeyName: string;
23192318
lAttributeValue: TValue;
@@ -2325,11 +2324,10 @@ procedure TMVCJsonDataObjectsSerializer.JSONObjectToRecord(
23252324
raise EMVCDeserializationException.Create('Insufficient RTTI to deserialize record');
23262325
end;
23272326
lTypeSize := RTTIType.TypeSize;
2328-
lTypeInfo := RTTIType.Handle;
23292327
GetMem(Buffer, lTypeSize);
23302328
FillChar(Buffer^, lTypeSize, 0);
23312329
{$IF Defined(RIOORBETTER)}
2332-
InvokeRecordInitializer(Buffer, lTypeInfo);
2330+
InvokeRecordInitializer(Buffer, RTTIType.Handle);
23332331
{$ENDIF}
23342332
lField := nil;
23352333
AIgnoredAttributes := [];
@@ -2380,19 +2378,17 @@ procedure TMVCJsonDataObjectsSerializer.JSONObjectToRecordStatic(
23802378
const JSONObject: TJsonObject; RTTIType: TRttiRecordType; var Buffer: PByte);
23812379
var
23822380
lTypeSize: Integer;
2383-
lTypeInfo: PTypeInfo;
23842381
AIgnoredAttributes: TMVCIgnoredList;
23852382
lKeyName: string;
23862383
lAttributeValue: TValue;
23872384
lErrMsg: string;
23882385
lField: TRTTIField;
23892386
begin
23902387
lTypeSize := RTTIType.TypeSize;
2391-
lTypeInfo := RTTIType.Handle;
23922388
GetMem(Buffer, lTypeSize);
23932389
FillChar(Buffer^, lTypeSize, 0);
23942390
{$IF Defined(RIOORBETTER)}
2395-
InvokeRecordInitializer(Buffer, lTypeInfo);
2391+
InvokeRecordInitializer(Buffer, RTTIType.Handle);
23962392
{$ENDIF}
23972393
lField := nil;
23982394
AIgnoredAttributes := [];

0 commit comments

Comments
 (0)