summaryrefslogtreecommitdiff
path: root/libopie2
authorzecke <zecke>2004-09-06 10:57:48 (UTC)
committer zecke <zecke>2004-09-06 10:57:48 (UTC)
commit8bf99aaa1b31e770b21b7bf50407a650a8f5d646 (patch) (side-by-side diff)
tree4aadf040fb94085f54080c2b2b112ab5ff236b24 /libopie2
parent97a40bb7f35a8323dd99712bf014387add283177 (diff)
downloadopie-8bf99aaa1b31e770b21b7bf50407a650a8f5d646.zip
opie-8bf99aaa1b31e770b21b7bf50407a650a8f5d646.tar.gz
opie-8bf99aaa1b31e770b21b7bf50407a650a8f5d646.tar.bz2
GCC 2.95 compile fix for switch/case statement
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp
index 127fee9..64fa199 100644
--- a/libopie2/opiecore/device/odevice_zaurus.cpp
+++ b/libopie2/opiecore/device/odevice_zaurus.cpp
@@ -323,18 +323,21 @@ void Zaurus::buzzer ( int sound )
|| d->m_model == Model_Zaurus_SLB600 ){
switch ( sound ){
- case SHARP_BUZ_TOUCHSOUND:
+ case SHARP_BUZ_TOUCHSOUND: {
static Sound touch_sound("touchsound");
snd = &touch_sound;
+ }
break;
- case SHARP_BUZ_KEYSOUND:
+ case SHARP_BUZ_KEYSOUND: {
static Sound key_sound( "keysound" );
snd = &key_sound;
+ }
break;
case SHARP_BUZ_SCHEDULE_ALARM:
- default:
+ default: {
static Sound alarm_sound("alarm");
snd = &alarm_sound;
+ }
break;
}
}