Skip to content
Permalink
Browse files

Fix uninitialised members in MythUIProgressDialog. Coverity 700925

  • Loading branch information
stuartm committed Dec 18, 2012
1 parent 5f54a74 commit b7b6e62c757bf0cc1f996e5202bb4cb48840d85f
Showing with 5 additions and 6 deletions.
  1. +5 −6 mythtv/libs/libmythui/mythprogressdialog.cpp
@@ -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)
@@ -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)

0 comments on commit b7b6e62

Please sign in to comment.
You can’t perform that action at this time.