From 798d7c065af4c6a62ae28baf612b334572611b42 Mon Sep 17 00:00:00 2001 From: Adeel Kazmi Date: Wed, 2 Dec 2015 10:11:17 +0000 Subject: [PATCH] Fix klocwork problems in Ubuntu build Change-Id: Ia79e500c973f2e3a98b22cc952fd5bf71d237689 --- adaptors/ubuntu/accessibility-adaptor-impl-ubuntu.cpp | 12 ------------ adaptors/ubuntu/tts-player-impl-ubuntu.cpp | 1 + adaptors/ubuntu/tts-player-impl.h | 4 ---- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/adaptors/ubuntu/accessibility-adaptor-impl-ubuntu.cpp b/adaptors/ubuntu/accessibility-adaptor-impl-ubuntu.cpp index dec7918..e967819 100644 --- a/adaptors/ubuntu/accessibility-adaptor-impl-ubuntu.cpp +++ b/adaptors/ubuntu/accessibility-adaptor-impl-ubuntu.cpp @@ -233,18 +233,6 @@ AccessibilityAdaptor::AccessibilityAdaptor() mIndicator( NULL ), mIndicatorFocused( false ) { - int isEnabled = 0; - DALI_LOG_INFO(gAccessibilityAdaptorLogFilter, Debug::General, "[%s:%d] %s\n", __FUNCTION__, __LINE__, isEnabled?"ENABLED":"DISABLED"); - - if(isEnabled == 1) - { - mIsEnabled = true; - } - else - { - mIsEnabled = false; - } - mAccessibilityGestureDetector = new AccessibilityGestureDetector(); } diff --git a/adaptors/ubuntu/tts-player-impl-ubuntu.cpp b/adaptors/ubuntu/tts-player-impl-ubuntu.cpp index 54c1cdf..12e5c55 100644 --- a/adaptors/ubuntu/tts-player-impl-ubuntu.cpp +++ b/adaptors/ubuntu/tts-player-impl-ubuntu.cpp @@ -54,6 +54,7 @@ Dali::TtsPlayer TtsPlayer::New(Dali::TtsPlayer::Mode mode) } TtsPlayer::TtsPlayer(Dali::TtsPlayer::Mode mode) +: mStateChangedSignal() { DALI_LOG_ERROR("TTS is not implemented in UBUNTU profile."); } diff --git a/adaptors/ubuntu/tts-player-impl.h b/adaptors/ubuntu/tts-player-impl.h index 22dcd41..89241b0 100644 --- a/adaptors/ubuntu/tts-player-impl.h +++ b/adaptors/ubuntu/tts-player-impl.h @@ -99,10 +99,6 @@ private: private: Dali::TtsPlayer::StateChangedSignalType mStateChangedSignal; ///< Signal emitted when the TTS state changes (non-functional, for interface compatibility). - std::string mUnplayedString; ///< The text that can not be played because tts engine is not yet initialized - int mUtteranceId; ///< The utterance ID - - Dali::TtsPlayer::Mode mTtsMode; ///< The current mode of tts engine #if defined(DEBUG_ENABLED) public: -- 2.7.4