summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-18 20:44:13 +0000
committerDavid Robillard <d@drobilla.net>2011-11-18 20:44:13 +0000
commitff0f6e493e90b7ecf891b7bcfa2b5b39c51b2fc3 (patch)
tree7cb95bd75978abc41dc7b250123dd6657a4333fd /gtk2_ardour
parent0e2173d2aeab277af4be39efd1a1aa5dda935dab (diff)
Fix warning.
git-svn-id: svn://localhost/ardour2/branches/3.0@10688 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/audio_clock.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc
index b87ecde127..e8c25ee2fa 100644
--- a/gtk2_ardour/audio_clock.cc
+++ b/gtk2_ardour/audio_clock.cc
@@ -1132,8 +1132,6 @@ AudioClock::index_to_field (int index) const
return Timecode_Seconds;
} else if (index < 13) {
return Timecode_Frames;
- } else {
- return Field (0);
}
break;
case BBT:
@@ -1143,11 +1141,8 @@ AudioClock::index_to_field (int index) const
return Beats;
} else if (index < 12) {
return Ticks;
- } else {
- return Field (0);
}
break;
-
case MinSec:
if (index < 3) {
return Timecode_Hours;
@@ -1157,15 +1152,14 @@ AudioClock::index_to_field (int index) const
return MS_Seconds;
} else if (index < 12) {
return MS_Milliseconds;
- } else {
- return Field (0);
}
break;
-
case Frames:
return AudioFrames;
break;
}
+
+ return Field (0);
}
bool