IDE: fixed searching unitnames in stringlist

git-svn-id: trunk@53393 -
This commit is contained in:
mattias 2016-11-21 12:13:33 +00:00
parent b8344eab11
commit 9d9b4ce60c
2 changed files with 5 additions and 5 deletions

View File

@ -5401,7 +5401,7 @@ begin
GetFixupReferenceNames(CurRoot,ReferenceRootNames);
for j:=0 to ReferenceRootNames.Count-1 do begin
RefRootName:=ReferenceRootNames[j];
if UTF8SearchInStringList(LoadingReferenceNames,RefRootName)>=0
if SearchInStringListI(LoadingReferenceNames,RefRootName)>=0
then
continue;
ReferenceInstanceNames.Clear;

View File

@ -1685,12 +1685,12 @@ begin
try
if not CodeToolBoss.FindUsedUnitNames(MainUnitInfo.Source,
MainUsesSection,ImplementationUsesSection) then exit;
if (UTF8SearchInStringList(MainUsesSection,'forms')<0)
and (UTF8SearchInStringList(ImplementationUsesSection,'forms')<0) then
if (SearchInStringListI(MainUsesSection,'forms')<0)
and (SearchInStringListI(ImplementationUsesSection,'forms')<0) then
exit;
// project uses lcl unit Forms
if (UTF8SearchInStringList(MainUsesSection,'interfaces')>=0)
or (UTF8SearchInStringList(ImplementationUsesSection,'interfaces')>=0) then
if (SearchInStringListI(MainUsesSection,'interfaces')>=0)
or (SearchInStringListI(ImplementationUsesSection,'interfaces')>=0) then
exit;
// project uses lcl unit Forms, but not unit interfaces
// this will result in strange linker error