camerauis/cameraxui/cxengine/src/cxesoundplayersymbian.cpp
changeset 45 24fd82631616
parent 43 0e652f8f1fbd
child 55 0da2a5b56583
--- a/camerauis/cameraxui/cxengine/src/cxesoundplayersymbian.cpp	Thu Jul 15 01:55:05 2010 +0300
+++ b/camerauis/cameraxui/cxengine/src/cxesoundplayersymbian.cpp	Fri Jul 23 11:35:41 2010 +0300
@@ -259,12 +259,8 @@
     CX_DEBUG(("Warning tones enabled [%d]", value.toInt()));
 
     // check whether capture sound is forced or not
-    int forced = 0;
-    mSettings.get(CxeSettingIds::CAPTURE_SOUND_ALWAYS_ON, forced);
-    // 0 -> capture sound not forced
-    // 1 -> capture sound forced on
-    mCaptureSoundForced = (forced == 1);
-    CX_DEBUG(("Capture sound forced [%d]", forced));
+    mCaptureSoundForced = mSettings.get<bool>(CxeSettingIds::CAPTURE_SOUND_ALWAYS_ON, false);
+    CX_DEBUG(("Capture sound forced [%d]", mCaptureSoundForced));
 
     // use sound if forced on or warningtones are enabled
     mUseSound = mCaptureSoundForced || warningTonesEnabled;