mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:19:37 +02:00
Converter: fix comments in UsedUnits.
git-svn-id: trunk@28686 -
This commit is contained in:
parent
aaa5e8b72b
commit
be513b35da
@ -48,8 +48,8 @@ type
|
||||
|
||||
TUsedUnits = class
|
||||
private
|
||||
fCTLink: TCodeToolLink;
|
||||
fUsesSection: TUsesSection; // This is a link to codetools.
|
||||
fCTLink: TCodeToolLink; // Link to codetools.
|
||||
fUsesSection: TUsesSection; // Enum used by some codetools funcs.
|
||||
fUnitsToRemove: TStringList; // List of units to remove.
|
||||
// Units to rename. Map old unit name -> new unit name.
|
||||
fUnitsToRename: TStringToStringTree;
|
||||
@ -487,7 +487,8 @@ begin
|
||||
end;
|
||||
|
||||
function TUsedUnitsTool.Prepare: TModalResult;
|
||||
// Add, remove, rename and comment out used unit names.
|
||||
// Find missing units and mark some of them to be replaced later.
|
||||
// More units can be marked for add, remove, rename and comment during conversion.
|
||||
var
|
||||
UnitUpdater: TStringMapUpdater;
|
||||
MapToEdit: TStringToStringTree;
|
||||
@ -538,6 +539,7 @@ begin
|
||||
end;
|
||||
|
||||
function TUsedUnitsTool.Convert: TModalResult;
|
||||
// Add, remove, rename and comment out unit names that were marked earlier.
|
||||
begin
|
||||
Result:=mrCancel;
|
||||
if fCTLink.Settings.Target=ctLazarus then begin
|
||||
|
Loading…
Reference in New Issue
Block a user