Skip to content

Commit

Permalink
Use initialisation list for MythMusic's RipStatus class. Cppcheck per…
Browse files Browse the repository at this point in the history
…formance warning
  • Loading branch information
stuartm committed May 24, 2013
1 parent d0e3184 commit ee668f1
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions mythplugins/mythmusic/mythmusic/cdrip.cpp
Expand Up @@ -1401,17 +1401,14 @@ void Ripper::customEvent(QEvent* event)

RipStatus::RipStatus(MythScreenStack *parent, const QString &device,
QVector<RipTrack*> *tracks, int quality)
: MythScreenType(parent, "ripstatus")
: MythScreenType(parent, "ripstatus"),
m_tracks(tracks), m_quality(quality),
m_CDdevice(device), m_overallText(NULL),
m_trackText(NULL), m_statusText(NULL),
m_overallPctText(NULL), m_trackPctText(NULL),
m_overallProgress(NULL), m_trackProgress(NULL),
m_ripperThread(NULL)
{
m_CDdevice = device;
m_tracks = tracks;
m_quality = quality;
m_ripperThread = NULL;

m_overallText = m_trackText = m_statusText = m_trackPctText =
m_overallPctText = NULL;

m_overallProgress = m_trackProgress = NULL;
}

RipStatus::~RipStatus(void)
Expand Down

0 comments on commit ee668f1

Please sign in to comment.