[vlmc-devel] commit: TrackHandler: Removing useless member nullOutput. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Sun Jun 27 23:10:47 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Jun 27 23:10:52 2010 +0200| [96f4ed86bd9472dbb2fc1d93d8946753870f7586] | committer: Hugo Beauzée-Luyssen
TrackHandler: Removing useless member nullOutput.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=96f4ed86bd9472dbb2fc1d93d8946753870f7586
---
src/Workflow/TrackHandler.cpp | 10 ----------
src/Workflow/TrackHandler.h | 1 -
2 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/src/Workflow/TrackHandler.cpp b/src/Workflow/TrackHandler.cpp
index cccacf4..45f920e 100644
--- a/src/Workflow/TrackHandler.cpp
+++ b/src/Workflow/TrackHandler.cpp
@@ -27,16 +27,11 @@
#include <QDomDocument>
#include <QDomElement>
-Workflow::Frame *TrackHandler::nullOutput = NULL;
-
TrackHandler::TrackHandler( unsigned int nbTracks, MainWorkflow::TrackType trackType ) :
m_trackCount( nbTracks ),
m_trackType( trackType ),
m_length( 0 )
{
- //FIXME -> This should be a NULL pointer.
- TrackHandler::nullOutput = new Workflow::Frame( 0, 0);
-
m_tracks = new Toggleable<TrackWorkflow*>[nbTracks];
for ( unsigned int i = 0; i < nbTracks; ++i )
{
@@ -47,11 +42,6 @@ TrackHandler::TrackHandler( unsigned int nbTracks, MainWorkflow::TrackType track
TrackHandler::~TrackHandler()
{
- if ( nullOutput != NULL )
- {
- delete nullOutput;
- nullOutput = NULL;
- }
for (unsigned int i = 0; i < m_trackCount; ++i)
delete m_tracks[i];
delete[] m_tracks;
diff --git a/src/Workflow/TrackHandler.h b/src/Workflow/TrackHandler.h
index ebc1ef4..6c5655f 100644
--- a/src/Workflow/TrackHandler.h
+++ b/src/Workflow/TrackHandler.h
@@ -107,7 +107,6 @@ class TrackHandler : public QObject
void activateTrack( unsigned int tracKId );
private:
- static Workflow::Frame* nullOutput;
Toggleable<TrackWorkflow*>* m_tracks;
unsigned int m_trackCount;
MainWorkflow::TrackType m_trackType;
More information about the Vlmc-devel
mailing list