CodeTools: Fixing compilation of the addclass.lpi example (continued 2f643bd4)

This commit is contained in:
n7800 2024-08-13 20:04:21 +05:00
parent d4d817e7af
commit 48b22a8acf

View File

@ -57,7 +57,7 @@ begin
end;
SourceChangeCache:=CodeToolBoss.SourceChangeCache;
// find a nice insert position (behind the uses section)
UsesSection:=Tool.FindMainUsesSection(false);
UsesSection:=Tool.FindMainUsesNode(false);
InsertPos:=UsesSection.EndPos;
// use the same indentation as the start of the uses section
Indent:=GetLineIndent(Tool.Src,UsesSection.StartPos);