diff options
author | Robin Gareus <robin@gareus.org> | 2019-09-18 04:43:09 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-09-18 04:43:09 +0200 |
commit | 60bce78c7e06676917c52dc0e62c2d92169d391e (patch) | |
tree | 308d760558f438e0e5483fdb43cd6527f9238782 /libs/evoral/evoral | |
parent | bf806cde661fb4e2ebbf8ec54a636de181d16301 (diff) |
Fix Wdeprecated, dynamic exception
Dynamic exception specifications are deprecated in C++11,
and were removed in C++17.
Diffstat (limited to 'libs/evoral/evoral')
-rw-r--r-- | libs/evoral/evoral/SMF.hpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libs/evoral/evoral/SMF.hpp b/libs/evoral/evoral/SMF.hpp index 352c1fbf7c..4888ba6a60 100644 --- a/libs/evoral/evoral/SMF.hpp +++ b/libs/evoral/evoral/SMF.hpp @@ -37,8 +37,6 @@ typedef smf_tempo_struct smf_tempo_t; namespace Evoral { -#define THROW_FILE_ERROR throw(FileError) - /** Standard Midi File. * Currently only tempo-based time of a given PPQN is supported. * @@ -66,10 +64,10 @@ public: virtual ~SMF(); static bool test(const std::string& path); - int open(const std::string& path, int track=1) THROW_FILE_ERROR; + int open(const std::string& path, int track=1); // XXX 19200 = 10 * Timecode::BBT_Time::ticks_per_beat - int create(const std::string& path, int track=1, uint16_t ppqn=19200) THROW_FILE_ERROR; - void close() THROW_FILE_ERROR; + int create(const std::string& path, int track=1, uint16_t ppqn=19200); + void close(); void seek_to_start() const; int seek_to_track(int track); @@ -82,7 +80,7 @@ public: void begin_write(); void append_event_delta(uint32_t delta_t, uint32_t size, const uint8_t* buf, event_id_t note_id); - void end_write(std::string const &) THROW_FILE_ERROR; + void end_write(std::string const &); void flush() {}; |