IDE: code explorer: fixed ignoring user defined constants

git-svn-id: trunk@19461 -
This commit is contained in:
mattias 2009-04-16 23:29:31 +00:00
parent 97bbdab0c8
commit da0694aae0
2 changed files with 3 additions and 2 deletions

View File

@ -3213,6 +3213,7 @@ begin
inc(p2);
dec(l);
end;
Result:=0;
end;
function CompareStringConstants(p1, p2: PChar): integer;

View File

@ -296,6 +296,8 @@ begin
AppendPathDelim(GetPrimaryConfigPath)+'codeexploreroptions.xml';
FNotFigureConstants:=TAvgLvlTree.Create(TListSortCompare(@CompareAtom));
Clear;
AddNotFigureConstant('0');
AddNotFigureConstant('1');
end;
destructor TCodeExplorerOptions.Destroy;
@ -317,8 +319,6 @@ begin
FNestedProcCount:=DefaultFigNestedProcCount;
FFigureCharConst:=DefaultFigureCharConst;
ClearNotFigureConstants;
AddNotFigureConstant('0');
AddNotFigureConstant('1');
end;
procedure TCodeExplorerOptions.Assign(Source: TPersistent);