IDE: writing method names to stream of inline components

git-svn-id: trunk@15698 -
This commit is contained in:
mattias 2008-07-07 15:54:50 +00:00
parent 3246e67e23
commit 9cf5b70a7d
2 changed files with 3 additions and 1 deletions

View File

@ -1376,6 +1376,9 @@ begin
try
BinCompStream.Position:=0;
Writer:=CreateLRSWriter(BinCompStream,DestroyDriver);
{$IFNDEF DisableFakeMethods}
Writer.OnWriteMethodProperty:=@WriteMethodPropertyEvent;
{$ENDIF}
Writer.OnFindAncestor:=@WriterFindAncestor;
AncestorUnit:=AnUnitInfo.FindAncestorUnit;
Ancestor:=nil;

View File

@ -4727,7 +4727,6 @@ begin
if AncestorUnit<>nil then
Ancestor:=AncestorUnit.Component;
Writer.WriteDescendent(AnUnitInfo.Component,Ancestor);
Writer.WriteDescendent(AnUnitInfo.Component,nil);
if DestroyDriver then Writer.Driver.Free;
FreeAndNil(Writer);
AnUnitInfo.ComponentLastBinStreamSize:=BinCompStream.Size;