Skip to content

Commit 72543fb

Browse files
Added missing variable declaration
1 parent d7c083a commit 72543fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/UIRibbon.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,8 @@ function TUIRibbon.OnCreateUICommand(CommandId: UInt32; TypeId: _UICommandType;
13581358
end;
13591359

13601360
function TUIRibbon.OnDestroyUICommand(CommandId: UInt32; TypeId: _UICommandType; const CommandHandler: IUICommandHandler): HRESULT;
1361+
var
1362+
lCommand: TUICommand;
13611363
begin
13621364
//FCommands.Remove(CommandId); <- Code commented, because we might still have references to the command at this point. Since it is not ref-counted, we must not destroy it yet.
13631365
if Assigned(FOnCommandDestroy) and TryGetCommand(CommandId, lCommand) then

0 commit comments

Comments
 (0)