From 57d6892116bbfc00eb1d71c17c0fcdbbe3bf53ea Mon Sep 17 00:00:00 2001 From: "sungwook79.park" Date: Fri, 9 Sep 2016 16:45:35 +0900 Subject: [PATCH] fix code formatting Change-Id: I0947d72cc3c552ebcdba82269a5a767dddf26792 Signed-off-by: sungwook79.park --- src/MicEffector.cpp | 26 +++++++++++++------------- src/WInputSttMicEffect.cpp | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/MicEffector.cpp b/src/MicEffector.cpp index f939b9a..b4f235e 100644 --- a/src/MicEffector.cpp +++ b/src/MicEffector.cpp @@ -92,7 +92,7 @@ MicEffector::MicEffector(Evas_Object *canvas, Evas_Object *layout, IMicEffector& */ MicEffector::~MicEffector() { - if(timer) + if (timer) { ecore_timer_del(timer); timer = NULL; @@ -144,7 +144,7 @@ void MicEffector::DrawQue(int idx, bool is_start) // ea_vector_path_reset(path); - for(unsigned int i = start; i < end; i++) + for (unsigned int i = start; i < end; i++) { // posx = margin + (i * 5); @@ -242,7 +242,7 @@ void MicEffector::DrawWave(unsigned int idx, int amount, int prev_amount, double */ void MicEffector::Start() { - if(timer) { + if (timer) { ecore_timer_del(timer); timer = NULL; } @@ -252,7 +252,7 @@ void MicEffector::Start() prev.clear(); current.clear(); - for(size_t i = 0; i < spectrum_count; i++) + for (size_t i = 0; i < spectrum_count; i++) { prev.push_back(0); current.push_back(0); @@ -271,11 +271,11 @@ void MicEffector::Start() effector->DrawQue(effector->drawcount); - if(effector->drawcount < (int) start_stop_anim_count) { + if (effector->drawcount < (int) start_stop_anim_count) { effector->drawcount += 2; return ECORE_CALLBACK_RENEW; } else { - for(unsigned int i = 0; i < spectrum_count; i++) + for (unsigned int i = 0; i < spectrum_count; i++) effector->DrawWave(i, 0, 0); // ea_vector_canvas_draw(effector->canvas, effector->path, effector->paint); @@ -315,7 +315,7 @@ void MicEffector::Effect(bool fake) // ea_vector_path_reset(effector->path); - for(unsigned int i = 0; i < effector->current.size(); i++) + for (unsigned int i = 0; i < effector->current.size(); i++) { if (is_empty_prev) effector->DrawWave(i, effector->current.at(i), 0); @@ -341,13 +341,13 @@ void MicEffector::Effect(bool fake) */ void MicEffector::Stop(bool forced) { - if(timer) + if (timer) { ecore_timer_del(timer); timer = NULL; } - if(!started) + if (!started) { Idle(); return; @@ -362,11 +362,11 @@ void MicEffector::Stop(bool forced) effector->DrawQue(start_stop_anim_count - effector->drawcount, false); - if(effector->drawcount < (int) start_stop_anim_count) { + if (effector->drawcount < (int) start_stop_anim_count) { effector->drawcount += 2; return ECORE_CALLBACK_RENEW; } else { - if(!effector->forcestop) { + if (!effector->forcestop) { effector->Processing(); } else { effector->Idle(); @@ -390,10 +390,10 @@ void MicEffector::VolumeCheck(bool fake) this->fake = fake; - if(!fake) { + if (!fake) { volumes = ieffect.GetVolume(); } else { - for(unsigned int i = 0; i < spectrum_count; i++) { + for (unsigned int i = 0; i < spectrum_count; i++) { volumes.push_back(rand_r((unsigned int*)time(NULL)) % 2); } } diff --git a/src/WInputSttMicEffect.cpp b/src/WInputSttMicEffect.cpp index efb2c42..fa0f710 100644 --- a/src/WInputSttMicEffect.cpp +++ b/src/WInputSttMicEffect.cpp @@ -114,7 +114,7 @@ void WInputSttMicEffect::ProcessingAnimationStart() { processing_effect_timer = ecore_timer_add(0.1, [](void *data)->Eina_Bool { - if(!data) return ECORE_CALLBACK_CANCEL; + if (!data) return ECORE_CALLBACK_CANCEL; /* WInputSttMicEffect *effect = (WInputSttMicEffect *) data; Evas_Object *progressbar = effect->progressbar; @@ -133,7 +133,7 @@ void WInputSttMicEffect::ProcessingAnimationStart() { } void WInputSttMicEffect::ProcessingAnimationStop() { - if(processing_effect_timer) + if (processing_effect_timer) { ecore_timer_del(processing_effect_timer); processing_effect_timer = NULL; -- 2.7.4