You've already forked lazarus-ccr
Correct test for string-based type (optional)properties (for storage)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1483 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -2560,12 +2560,14 @@ var
|
|||||||
Indent();
|
Indent();
|
||||||
pte := FSymbolTable.FindElement(p.VarType.Name);
|
pte := FSymbolTable.FindElement(p.VarType.Name);
|
||||||
if ( pte <> nil ) and pte.InheritsFrom(TPasType) then begin
|
if ( pte <> nil ) and pte.InheritsFrom(TPasType) then begin
|
||||||
|
if pte.InheritsFrom(TPasUnresolvedTypeRef) then
|
||||||
|
pte := SymbolTable.FindElement(SymbolTable.GetExternalName(pte));
|
||||||
pt := pte as TPasType;
|
pt := pte as TPasType;
|
||||||
pt := GetUltimeType(pt);
|
pt := GetUltimeType(pt);
|
||||||
if pt.InheritsFrom(TPasEnumType) then begin
|
if pt.InheritsFrom(TPasEnumType) then begin
|
||||||
WriteLn('Result := True;');
|
WriteLn('Result := True;');
|
||||||
end else if pt.InheritsFrom(TPasNativeSimpleType) and
|
end else if pt.InheritsFrom(TPasNativeSimpleType) and
|
||||||
( AnsiPos('string', pt.Name) > 0 )
|
( AnsiPos('string', LowerCase(pt.Name)) > 0 )
|
||||||
then begin
|
then begin
|
||||||
WriteLn('Result := ( F%s <> '''' );',[p.Name]);
|
WriteLn('Result := ( F%s <> '''' );',[p.Name]);
|
||||||
end else if pt.InheritsFrom(TPasNativeSimpleType) and
|
end else if pt.InheritsFrom(TPasNativeSimpleType) and
|
||||||
|
Reference in New Issue
Block a user