diff --git a/ApplicationCode/UserInterface/RiuViewer.cpp b/ApplicationCode/UserInterface/RiuViewer.cpp index 8539153839..c4e606a269 100644 --- a/ApplicationCode/UserInterface/RiuViewer.cpp +++ b/ApplicationCode/UserInterface/RiuViewer.cpp @@ -315,8 +315,7 @@ void RiuViewer::mouseReleaseEvent(QMouseEvent* event) //-------------------------------------------------------------------------------------------------- void RiuViewer::slotEndAnimation() { - cvf::Rendering* firstRendering = m_mainRendering.p(); - CVF_ASSERT(firstRendering); + CVF_ASSERT(m_mainRendering.notNull()); if (m_rimView) m_rimView->endAnimation(); @@ -765,8 +764,7 @@ void RiuViewer::navigationPolicyUpdate() //-------------------------------------------------------------------------------------------------- void RiuViewer::setCurrentFrame(int frameIndex) { - cvf::Rendering* firstRendering = m_mainRendering.p(); - CVF_ASSERT(firstRendering); + CVF_ASSERT(m_mainRendering.notNull()); if (m_rimView) m_rimView->setCurrentTimeStepAndUpdate(frameIndex);