mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: eliminate redundant code in SmartFolderSearchResultFileSource
This commit is contained in:
parent
ea58f2c931
commit
60aedea303
1 changed files with 1 additions and 10 deletions
|
|
@ -74,10 +74,7 @@ type
|
|||
{ TSmartFolderSearchResultFileSource }
|
||||
|
||||
TSmartFolderSearchResultFileSource = class( TSearchResultFileSource )
|
||||
private
|
||||
_savedSearchName: String;
|
||||
public
|
||||
constructor Create( savedSearchName: String );
|
||||
function GetRootDir(sPath: String): String; override;
|
||||
function GetCustomIcon(const path: String; const iconSize: Integer
|
||||
): TBitmap; override; overload;
|
||||
|
|
@ -146,15 +143,9 @@ end;
|
|||
|
||||
{ TSmartFolderSearchResultFileSource }
|
||||
|
||||
constructor TSmartFolderSearchResultFileSource.Create(savedSearchName: String);
|
||||
begin
|
||||
Inherited Create( savedSearchName );
|
||||
_savedSearchName:= savedSearchName;
|
||||
end;
|
||||
|
||||
function TSmartFolderSearchResultFileSource.GetRootDir(sPath: String): String;
|
||||
begin
|
||||
Result:= PathDelim + PathDelim + PathDelim + rsSearchResult + ': ' + _savedSearchName + PathDelim;
|
||||
Result:= PathDelim + PathDelim + PathDelim + rsSearchResult + ': ' + _displayName + PathDelim;
|
||||
end;
|
||||
|
||||
function TSmartFolderSearchResultFileSource.GetCustomIcon(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue