Skip to content

Commit

Permalink
android: Fix problem with frontend setup
Browse files Browse the repository at this point in the history
using auto for a dynamic cast was not working. Changed to
appropriate object type.
  • Loading branch information
bennettpeter committed Jan 27, 2020
1 parent fc09cbe commit 704f5ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/standardsettings.cpp
Expand Up @@ -796,7 +796,7 @@ void StandardSettingDialog::customEvent(QEvent *event)
{
if (event->type() == DialogCompletionEvent::kEventType)
{
auto dce = dynamic_cast<DialogCompletionEvent*>(event);
DialogCompletionEvent *dce = static_cast<DialogCompletionEvent*>(event);
if (dce == nullptr)
return;
QString resultid = dce->GetId();
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/mythdialogbox.cpp
Expand Up @@ -414,7 +414,7 @@ void MythDialogBox::SendEvent(int res, const QString& text, const QVariant& data
if (!m_currentMenu->m_retObject)
return;

auto *dce = new DialogCompletionEvent(m_currentMenu->m_resultid, res, text, data);
DialogCompletionEvent *dce = new DialogCompletionEvent(m_currentMenu->m_resultid, res, text, data);
QCoreApplication::postEvent(m_currentMenu->m_retObject, dce);
}
else
Expand All @@ -424,7 +424,7 @@ void MythDialogBox::SendEvent(int res, const QString& text, const QVariant& data
if (!m_retObject)
return;

auto *dce = new DialogCompletionEvent(m_id, res, text, data);
DialogCompletionEvent *dce = new DialogCompletionEvent(m_id, res, text, data);
QCoreApplication::postEvent(m_retObject, dce);
}
}
Expand Down

0 comments on commit 704f5ef

Please sign in to comment.