forked from qt-creator/qt-creator
AutoTest: Avoid passing around pointer without owner...
...when using signals and slots between threads. Change-Id: Ib1ce607e225cb8d9973393c5bdaeebaa6e30bb41 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -200,7 +200,7 @@ TestResultsPane::~TestResultsPane()
|
||||
m_instance = 0;
|
||||
}
|
||||
|
||||
void TestResultsPane::addTestResult(TestResult *result)
|
||||
void TestResultsPane::addTestResult(const TestResultPtr &result)
|
||||
{
|
||||
const QScrollBar *scrollBar = m_treeView->verticalScrollBar();
|
||||
m_atEnd = scrollBar ? scrollBar->value() == scrollBar->maximum() : true;
|
||||
|
||||
Reference in New Issue
Block a user