From: <sv...@op...> - 2024-11-19 08:25:48
|
Author: sagamusix Date: Tue Nov 19 09:25:42 2024 New Revision: 22235 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22235 Log: [Fix] Another compile fix for retro builds. Modified: trunk/OpenMPT/mptrack/CommandSet.h Modified: trunk/OpenMPT/mptrack/CommandSet.h ============================================================================== --- trunk/OpenMPT/mptrack/CommandSet.h Tue Nov 19 09:14:04 2024 (r22234) +++ trunk/OpenMPT/mptrack/CommandSet.h Tue Nov 19 09:25:42 2024 (r22235) @@ -1274,7 +1274,7 @@ // Communication KeyCombination GetKey(CommandID cmd, UINT key) const { return m_commands[cmd].kcList[key]; } - mpt::span<const KeyCombination> GetKeyChoices(CommandID cmd) const { return m_commands[cmd].kcList; } + mpt::span<const KeyCombination> GetKeyChoices(CommandID cmd) const { return mpt::as_span(m_commands[cmd].kcList); } bool IsHidden(UINT c) const { return m_commands[c].IsHidden(); } int GetKeyListSize(CommandID cmd) const { return (cmd != kcNull) ? static_cast<int>(m_commands[cmd].kcList.size()) : 0; } CString GetCommandText(CommandID cmd) const { return m_commands[cmd].Message; } |