From 0e69dfe375f27c3610f0c5e5d88f423c4bcbfe6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 11 May 2021 16:37:42 +0200 Subject: [PATCH] Fix ftbfs on Fedora 34 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: ISO C++17 does not allow dynamic exception specifications error: static assertion failed: comparison object must be invocable as const Signed-off-by: François Andriot --- src/sound/AudioFileManager.cpp | 2 +- src/sound/AudioFileManager.h | 2 +- src/sound/SoundDriver.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sound/AudioFileManager.cpp b/src/sound/AudioFileManager.cpp index 90291d5..0628c92 100644 --- a/src/sound/AudioFileManager.cpp +++ b/src/sound/AudioFileManager.cpp @@ -414,7 +414,7 @@ AudioFileManager::setAudioPath(const std::string &path) } void -AudioFileManager::testAudioPath() throw (BadAudioPathException) +AudioFileManager::testAudioPath() { TQFileInfo info(m_audioPath.c_str()); if (!(info.exists() && info.isDir() && !info.isRelative() && diff --git a/src/sound/AudioFileManager.h b/src/sound/AudioFileManager.h index abbf2c0..e260c9f 100644 --- a/src/sound/AudioFileManager.h +++ b/src/sound/AudioFileManager.h @@ -165,7 +165,7 @@ public: // Throw if the current audio path does not exist or is not writable // - void testAudioPath() throw(BadAudioPathException); + void testAudioPath(); // Get a new audio filename at the audio record path // diff --git a/src/sound/SoundDriver.h b/src/sound/SoundDriver.h index 84df63f..d99076c 100644 --- a/src/sound/SoundDriver.h +++ b/src/sound/SoundDriver.h @@ -98,7 +98,7 @@ public: struct NoteOffEventCmp { - bool operator()(NoteOffEvent *nO1, NoteOffEvent *nO2) + bool operator()(NoteOffEvent *nO1, NoteOffEvent *nO2) const { return nO1->getRealTime() < nO2->getRealTime(); }