qtms/src/qtmsglobalgaineffectimpl.cpp
changeset 50 762d760dcfdf
parent 27 cbb1bfb7ebfb
--- a/qtms/src/qtmsglobalgaineffectimpl.cpp	Fri Jul 23 17:48:16 2010 -0500
+++ b/qtms/src/qtmsglobalgaineffectimpl.cpp	Fri Aug 06 17:13:32 2010 -0500
@@ -24,68 +24,60 @@
 using namespace TMS;
 
 QTMSGlobalGainEffectImpl::QTMSGlobalGainEffectImpl()
-    {
-    }
+{
+}
 
 QTMSGlobalGainEffectImpl::~QTMSGlobalGainEffectImpl()
-    {
+{
     RemoveObserver(*this);
-    }
+}
 
-gint QTMSGlobalGainEffectImpl::Create(QTMSEffect*& qglobalgain,
-        TMS::TMSEffect*& tmsglobalgain)
-    {
+gint QTMSGlobalGainEffectImpl::Create(QTMSEffect*& qglobalgain, TMS::TMSEffect*& tmsglobalgain)
+{
     gint ret(QTMS_RESULT_INSUFFICIENT_MEMORY);
     QTMSGlobalGainEffectImpl* self = new QTMSGlobalGainEffectImpl();
-    if (self)
-        {
+    if (self) {
         ret = self->PostConstruct();
-        if (ret != QTMS_RESULT_SUCCESS)
-            {
+        if (ret != QTMS_RESULT_SUCCESS) {
             delete self;
             self = NULL;
-            }
+        }
         self->iEffect = tmsglobalgain;
         ret = self->AddObserver(*self, NULL);
-        }
+    }
     qglobalgain = self;
     return ret;
-    }
+}
 
 gint QTMSGlobalGainEffectImpl::PostConstruct()
-    {
+{
     gint ret(QTMS_RESULT_SUCCESS);
     return ret;
-    }
+}
 
-gint QTMSGlobalGainEffectImpl::AddObserver(TMS::TMSEffectObserver& obsrvr,
-        gpointer user_data)
-    {
+gint QTMSGlobalGainEffectImpl::AddObserver(TMS::TMSEffectObserver& obsrvr, gpointer user_data)
+{
     gint ret(QTMS_RESULT_SUCCESS);
 
-    if (iEffect)
-        {
-        ret = static_cast<TMSGlobalGainEffect*> (iEffect)->AddObserver(obsrvr,
-                user_data);
-        }
+    if (iEffect) {
+        ret = static_cast<TMSGlobalGainEffect*> (iEffect)->AddObserver(obsrvr, user_data);
+    }
     return ret;
-    }
+}
 
 gint QTMSGlobalGainEffectImpl::RemoveObserver(TMS::TMSEffectObserver& obsrvr)
-    {
+{
     gint ret(QTMS_RESULT_SUCCESS);
 
-    if (iEffect)
-        {
-        ret = static_cast<TMSGlobalGainEffect*> (iEffect)->RemoveObserver(
-                obsrvr);
-        }
+    if (iEffect) {
+        ret = static_cast<TMSGlobalGainEffect*> (iEffect)->RemoveObserver(obsrvr);
+    }
     return ret;
-    }
+}
 
-void QTMSGlobalGainEffectImpl::EffectsEvent(
-        const TMS::TMSEffect& /*tmseffect*/, TMS::TMSSignalEvent event)
-    {
+void QTMSGlobalGainEffectImpl::EffectsEvent(const TMS::TMSEffect& /*tmseffect*/,
+    TMS::TMSSignalEvent event)
+{
     QTMSSignalEvent qevent;
 
     qevent.type = event.type;
@@ -95,8 +87,7 @@
     qevent.event_data = event.event_data;
     qevent.user_data = event.user_data;
 
-    emit QTMS::QTMSGlobalGainEffect::EffectsEvent(
-            static_cast<QTMSEffect&> (*this), qevent);
-    }
+    emit QTMS::QTMSGlobalGainEffect::EffectsEvent(static_cast<QTMSEffect&> (*this), qevent);
+}
 
 // End of file