mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 23:39:24 +02:00
LCL: fixed warnings by using out parameter instead of var paramater
git-svn-id: trunk@13579 -
This commit is contained in:
parent
7e5dbd0350
commit
0ced829a0f
@ -500,10 +500,10 @@ type
|
|||||||
TSelectDirOpts = set of TSelectDirOpt;
|
TSelectDirOpts = set of TSelectDirOpt;
|
||||||
|
|
||||||
function SelectDirectory(const Caption, InitialDirectory: string;
|
function SelectDirectory(const Caption, InitialDirectory: string;
|
||||||
var Directory: string): boolean;
|
out Directory: string): boolean;
|
||||||
function SelectDirectory(const Caption, InitialDirectory: string;
|
function SelectDirectory(const Caption, InitialDirectory: string;
|
||||||
var Directory: string; ShowHidden: boolean; HelpCtx: Longint = 0): boolean;
|
out Directory: string; ShowHidden: boolean; HelpCtx: Longint = 0): boolean;
|
||||||
function SelectDirectory(var Directory: string;
|
function SelectDirectory(out Directory: string;
|
||||||
Options: TSelectDirOpts; HelpCtx: Longint): Boolean;
|
Options: TSelectDirOpts; HelpCtx: Longint): Boolean;
|
||||||
|
|
||||||
|
|
||||||
|
@ -255,13 +255,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function SelectDirectory(const Caption, InitialDirectory: string;
|
function SelectDirectory(const Caption, InitialDirectory: string;
|
||||||
var Directory: string): boolean;
|
out Directory: string): boolean;
|
||||||
begin
|
begin
|
||||||
Result:=SelectDirectory(Caption,InitialDirectory,Directory,false);
|
Result:=SelectDirectory(Caption,InitialDirectory,Directory,false);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function SelectDirectory(const Caption, InitialDirectory: string;
|
function SelectDirectory(const Caption, InitialDirectory: string;
|
||||||
var Directory: string; ShowHidden: boolean; HelpCtx: Longint): boolean;
|
out Directory: string; ShowHidden: boolean; HelpCtx: Longint): boolean;
|
||||||
var
|
var
|
||||||
SelectDirectoryDialog: TSelectDirectoryDialog;
|
SelectDirectoryDialog: TSelectDirectoryDialog;
|
||||||
begin
|
begin
|
||||||
@ -279,7 +279,7 @@ begin
|
|||||||
Directory:='';
|
Directory:='';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function SelectDirectory(var Directory: string;
|
function SelectDirectory(out Directory: string;
|
||||||
Options: TSelectDirOpts; HelpCtx: Longint): Boolean;
|
Options: TSelectDirOpts; HelpCtx: Longint): Boolean;
|
||||||
var
|
var
|
||||||
SelectDirectoryDialog: TSelectDirectoryDialog;
|
SelectDirectoryDialog: TSelectDirectoryDialog;
|
||||||
|
Loading…
Reference in New Issue
Block a user