From: <sv...@op...> - 2024-12-19 09:11:51
|
Author: manx Date: Thu Dec 19 10:11:38 2024 New Revision: 22573 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22573 Log: [Fix] Compile fix. Modified: trunk/OpenMPT/soundlib/InstrumentExtensions.cpp Modified: trunk/OpenMPT/soundlib/InstrumentExtensions.cpp ============================================================================== --- trunk/OpenMPT/soundlib/InstrumentExtensions.cpp Wed Dec 18 23:57:29 2024 (r22572) +++ trunk/OpenMPT/soundlib/InstrumentExtensions.cpp Thu Dec 19 10:11:38 2024 (r22573) @@ -183,7 +183,7 @@ struct PropertyWriterEnvelopeBase { PropertyWriterEnvelopeBase(uint32 nodes, EnvelopeType type) : nodes{nodes}, type{type} {}; - static constexpr bool IsPropertyNeeded(const ModInstrument&) noexcept + static bool IsPropertyNeeded(const ModInstrument&) noexcept { return true; } @@ -242,7 +242,7 @@ struct PropertyWriterPitchTempoLock { - static constexpr bool IsPropertyNeeded(const ModInstrument &ins) noexcept { return ModInstrument{}.pitchToTempoLock != ins.pitchToTempoLock; } + static bool IsPropertyNeeded(const ModInstrument &ins) noexcept { return ModInstrument{}.pitchToTempoLock != ins.pitchToTempoLock; } static constexpr uint16 Size() noexcept { return sizeof(uint16le); } PropertyWriterPitchTempoLock(bool intPart) : m_intPart{intPart} {} void Write(std::ostream &file, const ModInstrument &ins) |