ShortCutToKey param as "out" instead of "var"

git-svn-id: trunk@34940 -
This commit is contained in:
martin 2012-01-25 23:25:10 +00:00
parent ebb35c4a27
commit b9adcfa385

View File

@ -417,8 +417,8 @@ type
end;
function ShortCut(const Key: Word; const Shift : TShiftState) : TShortCut;
procedure ShortCutToKey(const ShortCut : TShortCut; var Key: Word;
var Shift : TShiftState);
procedure ShortCutToKey(const ShortCut : TShortCut; out Key: Word;
out Shift : TShiftState);
var
DesignerMenuItemClick: TNotifyEvent = nil;
@ -566,8 +566,8 @@ begin
Result := LCLType.KeyToShortCut(Key,Shift);
end;
procedure ShortCutToKey(const ShortCut: TShortCut; var Key: Word;
var Shift : TShiftState);
procedure ShortCutToKey(const ShortCut: TShortCut; out Key: Word;
out Shift : TShiftState);
begin
Key := ShortCut and $FF;
Shift := [];