Commit 3196e882 authored by Sandro Camata Santana's avatar Sandro Camata Santana

Constantes de membros de classe agora são não tipadas.

parent af71990f
...@@ -4092,7 +4092,9 @@ end; ...@@ -4092,7 +4092,9 @@ end;
procedure TInstantCodeConst.InternalWrite(Writer: TInstantCodeWriter); procedure TInstantCodeConst.InternalWrite(Writer: TInstantCodeWriter);
begin begin
Writer.WriteLnFmt('%s: %s = %s;', [Name, TypeName, Value]); if TypeName <> ''
then Writer.WriteLnFmt('%s: %s = %s;', [Name, TypeName, Value])
else Writer.WriteLnFmt('%s = %s;', [Name, Value]);
end; end;
{ TInstantCodeResStrings } { TInstantCodeResStrings }
......
...@@ -2402,7 +2402,6 @@ begin ...@@ -2402,7 +2402,6 @@ begin
lInstantCodeConst := TInstantCodeConst.Create(piInstantCodeConsts); lInstantCodeConst := TInstantCodeConst.Create(piInstantCodeConsts);
// lInstantCodeConst.TypeValue := TInstantCodeType(lInstantCodeConst); // lInstantCodeConst.TypeValue := TInstantCodeType(lInstantCodeConst);
lInstantCodeConst.Name := lClassTicket.PersistentObjectClassName + '_' + lsAtributo; lInstantCodeConst.Name := lClassTicket.PersistentObjectClassName + '_' + lsAtributo;
lInstantCodeConst.TypeName := 'Integer';
lInstantCodeConst.Value := IntToStr(lAttributeTicket.AttributeIndex); lInstantCodeConst.Value := IntToStr(lAttributeTicket.AttributeIndex);
end; end;
...@@ -2413,7 +2412,6 @@ begin ...@@ -2413,7 +2412,6 @@ begin
begin begin
lInstantCodeConst := TInstantCodeConst.Create(piInstantCodeConsts); lInstantCodeConst := TInstantCodeConst.Create(piInstantCodeConsts);
lInstantCodeConst.Name := lClassTicket.PersistentObjectClassName + '_' + lRelationTicket.OriginPropertyName; lInstantCodeConst.Name := lClassTicket.PersistentObjectClassName + '_' + lRelationTicket.OriginPropertyName;
lInstantCodeConst.TypeName := 'Integer';
lInstantCodeConst.Value := IntToStr(lRelationTicket.OriginPropertyindex); lInstantCodeConst.Value := IntToStr(lRelationTicket.OriginPropertyindex);
end; end;
end; end;
...@@ -2425,7 +2423,6 @@ begin ...@@ -2425,7 +2423,6 @@ begin
begin begin
lInstantCodeConst := TInstantCodeConst.Create(piInstantCodeConsts); lInstantCodeConst := TInstantCodeConst.Create(piInstantCodeConsts);
lInstantCodeConst.Name := lClassTicket.PersistentObjectClassName + '_' + lRelationTicket.DestinationPropertyName; lInstantCodeConst.Name := lClassTicket.PersistentObjectClassName + '_' + lRelationTicket.DestinationPropertyName;
lInstantCodeConst.TypeName := 'Integer';
lInstantCodeConst.Value := IntToStr(lRelationTicket.DestinationPropertyIndex); lInstantCodeConst.Value := IntToStr(lRelationTicket.DestinationPropertyIndex);
end; end;
end; end;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment