From 535a14adae4cdc5e2b8610b1c8e30501c9e95d5f Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Tue, 12 May 2009 21:45:51 +0200 Subject: GCC3x does not like static_cast to enum, use old style instead. --- src/gui/setup_video.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index 9add3251..1c4043f7 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -479,8 +479,7 @@ void Setup_Video::action(const gcn::ActionEvent &event) } else if (event.getId() == "speech") { - Being::Speech val = - static_cast(mSpeechSlider->getValue()); + Being::Speech val = (Being::Speech)mSpeechSlider->getValue(); mSpeechLabel->setCaption(speechModeToString(val)); mSpeechSlider->setValue(val); config.setValue("speech", val); -- cgit v1.2.3-70-g09d2