mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:19:37 +02:00
TFileSearcher: use the new Options parameter for the MaskList.
git-svn-id: trunk@62783 -
This commit is contained in:
parent
35ea303818
commit
e513f7a26a
@ -824,10 +824,14 @@ var
|
||||
Dir: String;
|
||||
i: Integer;
|
||||
OtherDir: String;
|
||||
MaskOptions: TMaskOptions;
|
||||
begin
|
||||
if FSearching then RaiseSearchingError;
|
||||
|
||||
MaskList := TMaskList.Create(ASearchMask, FMaskSeparator, CaseSensitive);
|
||||
if CaseSensitive then
|
||||
MaskOptions := [moCaseSensitive]
|
||||
else
|
||||
MaskOptions := [];
|
||||
MaskList := TMaskList.Create(ASearchMask, FMaskSeparator, MaskOptions);
|
||||
// empty mask = all files mask
|
||||
if MaskList.Count = 0 then
|
||||
FreeAndNil(MaskList);
|
||||
|
Loading…
Reference in New Issue
Block a user