IDE: DebugLn in TProject.UnitWithComponentClassName. For debugging issue #39488.

This commit is contained in:
Juha 2021-11-27 23:41:50 +02:00
parent 05382f4ddf
commit 889f82bb4d

View File

@ -5551,9 +5551,11 @@ end;
function TProject.UnitWithComponentClassName(const AClassName: string): TUnitInfo;
begin
Result := fFirst[uilWithComponent];
while (Result<>nil)
and (SysUtils.CompareText(Result.Component.ClassName, AClassName) <> 0) do
while (Result<>nil) and (CompareText(Result.Component.ClassName, AClassName)<>0) do
begin
DebugLn('TProject.UnitWithComponentClassName: ', Result.Component.ClassName);
Result := Result.fNext[uilWithComponent];
end;
end;
function TProject.UnitWithComponentName(AComponentName: String;