Changeset 227 for trunk/Core.pas


Ignore:
Timestamp:
Jan 20, 2025, 11:38:55 AM (42 hours ago)
Author:
chronos
Message:
  • Modified: Do not reference global Core object if possible.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Core.pas

    r225 r227  
    1818    ImageListSmall: TImageList;
    1919    ImageListLarge: TImageList;
    20     JobProgressView1: TJobProgressView;
    2120    MenuItem1: TMenuItem;
    2221    MenuItem19: TMenuItem;
     
    5352    procedure SaveConfig;
    5453    procedure ScaleDPI;
    55     function CompareStrings(Strings1, Strings2: TStrings): Boolean;
    5654    property AlwaysOnTop: Boolean read FAlwaysOnTop write SetAlwaysOnTop;
    5755  end;
     
    10098  FreeAndNil(StoredDimension);
    10199  FreeAndNil(AcronymDb);
    102 end;
    103 
    104 function TCore.CompareStrings(Strings1, Strings2: TStrings): Boolean;
    105 var
    106   I: Integer;
    107 begin
    108   Result := Strings1.Count = Strings2.Count;
    109   if not Result then Exit;
    110   for I := 0 to Strings1.Count - 1 do
    111     if (Strings1[I] <> Strings2[I]) or (Strings1.Objects[I] <> Strings2.Objects[I]) then begin
    112       Result := False;
    113       Exit;
    114     end;
    115100end;
    116101
Note: See TracChangeset for help on using the changeset viewer.