comparison data/midi/MIDIEvent.h @ 1586:841b2a3e606d

Merge from branch fix-static-analysis
author Chris Cannam
date Wed, 09 Jan 2019 15:24:38 +0000
parents ad5f892c0c4d
children c3b5564cfb78
comparison
equal deleted inserted replaced
1585:9570ef94eaa3 1586:841b2a3e606d
17 This is a modified version of a source file from the 17 This is a modified version of a source file from the
18 Rosegarden MIDI and audio sequencer and notation editor. 18 Rosegarden MIDI and audio sequencer and notation editor.
19 This file copyright 2000-2006 Richard Bown and Chris Cannam. 19 This file copyright 2000-2006 Richard Bown and Chris Cannam.
20 */ 20 */
21 21
22 #ifndef _MIDI_EVENT_H_ 22 #ifndef SV_MIDI_EVENT_H
23 #define _MIDI_EVENT_H_ 23 #define SV_MIDI_EVENT_H
24 24
25 #include <QString> 25 #include <QString>
26 #include <string> 26 #include <string>
27 #include <iostream> 27 #include <iostream>
28 #include <stdexcept> 28 #include <stdexcept>
224 std::cerr << "WARNING: MIDI exception: " 224 std::cerr << "WARNING: MIDI exception: "
225 << message.toLocal8Bit().data() << std::endl; 225 << message.toLocal8Bit().data() << std::endl;
226 } 226 }
227 virtual ~MIDIException() throw() { } 227 virtual ~MIDIException() throw() { }
228 228
229 virtual const char *what() const throw() { 229 const char *what() const throw() override {
230 return m_message.toLocal8Bit().data(); 230 return m_message.toLocal8Bit().data();
231 } 231 }
232 232
233 protected: 233 protected:
234 QString m_message; 234 QString m_message;