X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fscopes%2Fscopemanager.h;h=31f7584eb2098b2c518cbf5b98586e83a1c7ceb6;hb=fabec436114bfe0a226453fc2c5ad2eb85cb54a0;hp=3ad8320cbb32bc9ea24174a2e46465f10039f589;hpb=a1f0a54b93ab364a37fd8242c1881c61d066ada7;p=kdenlive diff --git a/src/scopes/scopemanager.h b/src/scopes/scopemanager.h index 3ad8320c..31f7584e 100644 --- a/src/scopes/scopemanager.h +++ b/src/scopes/scopemanager.h @@ -36,14 +36,22 @@ class ScopeManager : QObject AbstractGfxScopeWidget *scope; QDockWidget *scopeDockWidget; bool singleFrameRequested; - GfxScopeData() { singleFrameRequested = false; } + GfxScopeData() { + scope = NULL; + scopeDockWidget = NULL; + singleFrameRequested = false; + } }; struct AudioScopeData { AbstractAudioScopeWidget *scope; QDockWidget *scopeDockWidget; bool singleFrameRequested; - AudioScopeData() { singleFrameRequested = false; } + AudioScopeData() { + scope = NULL; + scopeDockWidget = NULL; + singleFrameRequested = false; + } }; public: @@ -107,12 +115,12 @@ private slots: */ void slotCheckActiveScopes(); - void slotDistributeFrame(QImage image); - void slotDistributeAudio(QVector sampleData, int freq, int num_channels, int num_samples); + void slotDistributeFrame(const QImage &image); + void slotDistributeAudio(const QVector &sampleData, int freq, int num_channels, int num_samples); /** Allows a scope to explicitly request a new frame, even if the scope's autoRefresh is disabled. */ - void slotRequestFrame(const QString widgetName); + void slotRequestFrame(const QString &widgetName); };