codetools: do not add found public properties twice

git-svn-id: trunk@20969 -
This commit is contained in:
mattias 2009-07-27 09:46:17 +00:00
parent 0dadadf245
commit de301ed56c

View File

@ -891,6 +891,7 @@ var
exit(true); exit(true);
end; end;
end; end;
//DebugLn(['ProtectedNodeIsInAllowedClass hidden: ',FindContextToString(FoundContext)]);
Result:=false; Result:=false;
end; end;
@ -916,6 +917,7 @@ var
TAVLTree.Create(TListSortCompare(@CompareIdentifiers)) TAVLTree.Create(TListSortCompare(@CompareIdentifiers))
end else if FoundPublicProperties.Find(Ident)<>nil then begin end else if FoundPublicProperties.Find(Ident)<>nil then begin
// identifier is already public // identifier is already public
exit;
end; end;
FoundPublicProperties.Add(Ident); FoundPublicProperties.Add(Ident);
//debugln('SavePublicPublishedProperty Identifier=',GetIdentifier(Ident),' Find=',dbgs(FoundPublicProperties.Find(Ident)<>nil)); //debugln('SavePublicPublishedProperty Identifier=',GetIdentifier(Ident),' Find=',dbgs(FoundPublicProperties.Find(Ident)<>nil));