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>
pull/3/head
François Andriot 3 years ago
parent fc17dba5a7
commit 0e69dfe375

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