Remove unneeded pointer check.
This was flagged as an error by static code analyse tools. Closes #11195. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1429,8 +1429,6 @@ void wxMediaPlayerTimer::Notify()
|
|||||||
(wxMediaPlayerNotebookPage*) m_frame->m_notebook->GetCurrentPage();
|
(wxMediaPlayerNotebookPage*) m_frame->m_notebook->GetCurrentPage();
|
||||||
wxMediaCtrl* currentMediaCtrl = currentpage->m_mediactrl;
|
wxMediaCtrl* currentMediaCtrl = currentpage->m_mediactrl;
|
||||||
|
|
||||||
if(currentpage)
|
|
||||||
{
|
|
||||||
// Number of minutes/seconds total
|
// Number of minutes/seconds total
|
||||||
wxLongLong llLength = currentpage->m_mediactrl->Length();
|
wxLongLong llLength = currentpage->m_mediactrl->Length();
|
||||||
int nMinutes = (int) (llLength / 60000).GetValue();
|
int nMinutes = (int) (llLength / 60000).GetValue();
|
||||||
@@ -1500,7 +1498,6 @@ void wxMediaPlayerTimer::Notify()
|
|||||||
(int)llDownloadTotal.GetValue(),
|
(int)llDownloadTotal.GetValue(),
|
||||||
(int)(currentpage->m_mediactrl->GetVolume() * 100)));
|
(int)(currentpage->m_mediactrl->GetVolume() * 100)));
|
||||||
#endif // wxUSE_STATUSBAR
|
#endif // wxUSE_STATUSBAR
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
Reference in New Issue
Block a user