fix code formatting 19/87719/2
authorsungwook79.park <sungwook79.park@samsung.com>
Fri, 9 Sep 2016 07:45:35 +0000 (16:45 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 9 Sep 2016 09:03:22 +0000 (02:03 -0700)
Change-Id: I0947d72cc3c552ebcdba82269a5a767dddf26792
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
src/MicEffector.cpp
src/WInputSttMicEffect.cpp

index f939b9a..b4f235e 100644 (file)
@@ -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);
         }
     }
index efb2c42..fa0f710 100644 (file)
@@ -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;