@@ -2313,7 +2313,6 @@ procedure TMVCJsonDataObjectsSerializer.JSONObjectToRecord(
2313
2313
const JSONObject: TJsonObject; RTTIType: TRttiRecordType; out Buffer: PByte);
2314
2314
var
2315
2315
lTypeSize: Integer;
2316
- lTypeInfo: PTypeInfo;
2317
2316
AIgnoredAttributes: TMVCIgnoredList;
2318
2317
lKeyName: string;
2319
2318
lAttributeValue: TValue;
@@ -2325,11 +2324,10 @@ procedure TMVCJsonDataObjectsSerializer.JSONObjectToRecord(
2325
2324
raise EMVCDeserializationException.Create(' Insufficient RTTI to deserialize record' );
2326
2325
end ;
2327
2326
lTypeSize := RTTIType.TypeSize;
2328
- lTypeInfo := RTTIType.Handle;
2329
2327
GetMem(Buffer, lTypeSize);
2330
2328
FillChar(Buffer^, lTypeSize, 0 );
2331
2329
{ $IF Defined(RIOORBETTER)}
2332
- InvokeRecordInitializer(Buffer, lTypeInfo );
2330
+ InvokeRecordInitializer(Buffer, RTTIType.Handle );
2333
2331
{ $ENDIF}
2334
2332
lField := nil ;
2335
2333
AIgnoredAttributes := [];
@@ -2380,19 +2378,17 @@ procedure TMVCJsonDataObjectsSerializer.JSONObjectToRecordStatic(
2380
2378
const JSONObject: TJsonObject; RTTIType: TRttiRecordType; var Buffer: PByte);
2381
2379
var
2382
2380
lTypeSize: Integer;
2383
- lTypeInfo: PTypeInfo;
2384
2381
AIgnoredAttributes: TMVCIgnoredList;
2385
2382
lKeyName: string;
2386
2383
lAttributeValue: TValue;
2387
2384
lErrMsg: string;
2388
2385
lField: TRTTIField;
2389
2386
begin
2390
2387
lTypeSize := RTTIType.TypeSize;
2391
- lTypeInfo := RTTIType.Handle;
2392
2388
GetMem(Buffer, lTypeSize);
2393
2389
FillChar(Buffer^, lTypeSize, 0 );
2394
2390
{ $IF Defined(RIOORBETTER)}
2395
- InvokeRecordInitializer(Buffer, lTypeInfo );
2391
+ InvokeRecordInitializer(Buffer, RTTIType.Handle );
2396
2392
{ $ENDIF}
2397
2393
lField := nil ;
2398
2394
AIgnoredAttributes := [];
0 commit comments