0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 00:31:02 +08:00

(EasyGraphicsView) Revert code analyzer fix: No need to check for nullptr because if it is null then there are no free memory in the system and the program will crash anyway.

This commit is contained in:
Victor Zarubkin 2016-08-21 14:33:22 +03:00
parent 9804378b1a
commit e40da7921d

View File

@ -1499,12 +1499,6 @@ void EasyGraphicsView::setScrollbar(EasyGraphicsScrollbar* _scrollbar)
disconnect(m_pScrollbar, &EasyGraphicsScrollbar::valueChanged, this, &This::onGraphicsScrollbarValueChange);
}
if(!_scrollbar)
{
qWarning() << "Zero pointer in EasyGraphicsView::setScrollbar(EasyGraphicsScrollbar*): " << __LINE__ << " in file " << __FILE__;
return;
}
m_pScrollbar = _scrollbar;
m_pScrollbar->setMinimapFrom(0, nullptr);
m_pScrollbar->hideChrono();