Skip to content

Commit

Permalink
Fix uninitialised members in MythUIProgressDialog. Coverity 700925
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Dec 18, 2012
1 parent 5f54a74 commit b7b6e62
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions mythtv/libs/libmythui/mythprogressdialog.cpp
Expand Up @@ -7,15 +7,14 @@ QEvent::Type ProgressUpdateEvent::kEventType =

MythUIBusyDialog::MythUIBusyDialog(const QString &message,
MythScreenStack *parent, const char *name)
: MythScreenType(parent, name, false)
: MythScreenType(parent, name, false),
m_haveNewMessage(false), m_messageText(NULL)
{
if (!message.isEmpty())
m_message = message;
else
m_message = tr("Please Wait...");
m_origMessage = m_message;
m_messageText = NULL;
m_haveNewMessage = false;
}

bool MythUIBusyDialog::Create(void)
Expand Down Expand Up @@ -118,11 +117,11 @@ MythUIBusyDialog *ShowBusyPopup(const QString &message)

MythUIProgressDialog::MythUIProgressDialog(const QString &message,
MythScreenStack *parent, const char *name)
: MythScreenType(parent, name, false)
: MythScreenType(parent, name, false),
m_total(0), m_count(0),
m_messageText(NULL), m_progressText(NULL), m_progressBar(NULL)
{
m_count = m_total = 0;
m_message = message;
m_messageText = NULL;
}

bool MythUIProgressDialog::Create(void)
Expand Down

0 comments on commit b7b6e62

Please sign in to comment.