[vlmc-devel] EffectStack: Remove a private variable Backend::IInput* m_input

Yikai Lu git at videolan.org
Mon Dec 12 05:22:19 CET 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Dec 11 21:58:47 2016 -0600| [1f972ee85da402d9e75a0e3adc87fbd9672058a4] | committer: Yikai Lu

EffectStack: Remove a private variable Backend::IInput* m_input

> https://code.videolan.org/videolan/vlmc/commit/1f972ee85da402d9e75a0e3adc87fbd9672058a4
---

 src/Gui/effectsengine/EffectStack.cpp | 7 +++----
 src/Gui/effectsengine/EffectStack.h   | 1 -
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/Gui/effectsengine/EffectStack.cpp b/src/Gui/effectsengine/EffectStack.cpp
index 259c637..82006c9 100644
--- a/src/Gui/effectsengine/EffectStack.cpp
+++ b/src/Gui/effectsengine/EffectStack.cpp
@@ -40,8 +40,7 @@
 
 EffectStack::EffectStack( Backend::IInput *input, QWidget *parent ):
     QDialog( parent ),
-    m_ui( new Ui::EffectStack ),
-    m_input( input )
+    m_ui( new Ui::EffectStack )
 {
     m_ui->setupUi( this );
 
@@ -62,8 +61,8 @@ EffectStack::EffectStack( Backend::IInput *input, QWidget *parent ):
     //Add an empty instance widget.
     m_stackedLayout->addWidget( new EffectInstanceWidget( this ) );
     //Create instance widgets for already inserted effects
-    for ( int i = 0; i < m_input->filterCount(); ++i )
-        addEffectHelper( new EffectHelper( m_input->filter( i ) ) );
+    for ( int i = 0; i < input->filterCount(); ++i )
+        addEffectHelper( new EffectHelper( input->filter( i ) ) );
 }
 
 EffectStack::~EffectStack()
diff --git a/src/Gui/effectsengine/EffectStack.h b/src/Gui/effectsengine/EffectStack.h
index 1311c74..d9c1452 100644
--- a/src/Gui/effectsengine/EffectStack.h
+++ b/src/Gui/effectsengine/EffectStack.h
@@ -64,7 +64,6 @@ class EffectStack : public QDialog
     private:
         Ui::EffectStack                 *m_ui;
         EffectInstanceListModel         *m_model;
-        Backend::IInput                 *m_input;
         QStackedLayout                  *m_stackedLayout;
         QHash<QString, EffectInstanceWidget*>   m_instanceWidgets;
 };



More information about the Vlmc-devel mailing list