summaryrefslogtreecommitdiff
path: root/src/music
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2017-08-13 18:38:42 +0000
committerfrosch <frosch@openttd.org>2017-08-13 18:38:42 +0000
commitb4b98e51655012ea42dbc8ab9e455fbec0d04b39 (patch)
tree948fc802d5dfdca71454f6ce479e4f429e98488d /src/music
parent19bae485b028380fbdc94d02ebaecdf3ca23f932 (diff)
downloadopenttd-b4b98e51655012ea42dbc8ab9e455fbec0d04b39.tar.xz
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
Diffstat (limited to 'src/music')
-rw-r--r--src/music/extmidi.cpp2
-rw-r--r--src/music/qtmidi.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/music/extmidi.cpp b/src/music/extmidi.cpp
index 12b3689e2..d39a050f6 100644
--- a/src/music/extmidi.cpp
+++ b/src/music/extmidi.cpp
@@ -124,7 +124,7 @@ void MusicDriver_ExtMidi::DoPlay()
case -1:
DEBUG(driver, 0, "extmidi: couldn't fork: %s", strerror(errno));
- /* FALL THROUGH */
+ FALLTHROUGH;
default:
this->song[0] = '\0';
diff --git a/src/music/qtmidi.cpp b/src/music/qtmidi.cpp
index dfd6f16eb..9bc6a6174 100644
--- a/src/music/qtmidi.cpp
+++ b/src/music/qtmidi.cpp
@@ -242,7 +242,7 @@ void MusicDriver_QtMidi::Stop()
case QT_STATE_PLAY:
StopSong();
- /* FALL THROUGH */
+ FALLTHROUGH;
case QT_STATE_STOP:
DisposeMovie(_quicktime_movie);
@@ -267,13 +267,13 @@ void MusicDriver_QtMidi::PlaySong(const char *filename)
case QT_STATE_PLAY:
StopSong();
DEBUG(driver, 3, "qtmidi: previous tune stopped");
- /* FALL THROUGH */
+ FALLTHROUGH;
case QT_STATE_STOP:
DisposeMovie(_quicktime_movie);
DEBUG(driver, 3, "qtmidi: previous tune disposed");
_quicktime_state = QT_STATE_IDLE;
- /* FALL THROUGH */
+ FALLTHROUGH;
case QT_STATE_IDLE:
LoadMovieForMIDIFile(filename, &_quicktime_movie);
@@ -294,7 +294,7 @@ void MusicDriver_QtMidi::StopSong()
switch (_quicktime_state) {
case QT_STATE_IDLE:
- /* FALL THROUGH */
+ FALLTHROUGH;
case QT_STATE_STOP:
DEBUG(driver, 3, "qtmidi: stop requested, but already idle");