codetools: fixed ConvertDelphiToLazarusSource reparse after adding mode delphi

git-svn-id: trunk@23767 -
This commit is contained in:
mattias 2010-02-23 12:01:42 +00:00
parent 8c970975ee
commit 34bcf2c445

View File

@ -3941,8 +3941,6 @@ begin
Result:=false;
if SourceChangeCache=nil then exit;
SourceChangeCache.MainScanner:=Scanner;
SourceChangeCache.BeginUpdate;
try
DebugLn('ConvertDelphiToLazarusSource AddModeDelphiDirective');
if not AddModeDelphiDirective then exit;
DebugLn('ConvertDelphiToLazarusSource RemoveDFMResourceDirective');
@ -3953,9 +3951,6 @@ begin
if not ConvertUsedUnits then exit;
DebugLn('ConvertDelphiToLazarusSource Apply');
if not SourceChangeCache.Apply then exit;
finally
SourceChangeCache.EndUpdate;
end;
DebugLn('ConvertDelphiToLazarusSource END');
Result:=true;
end;