Fix ftbfs on Fedora 34

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 <francois.andriot@free.fr>
(cherry picked from commit 0e69dfe375)
r14.0.x
François Andriot 3 years ago committed by Michele Calgaro
parent 5c3d4da560
commit 1ee5b51a24
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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() &&

@ -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
//

@ -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();
}

Loading…
Cancel
Save