diff options
author | Christian Stenger <[email protected]> | 2016-02-25 13:02:31 +0100 |
---|---|---|
committer | Christian Stenger <[email protected]> | 2016-02-26 09:55:48 +0000 |
commit | 19c8c9bc4bd5144fba4bb6d1911dd69e5ab44af0 (patch) | |
tree | bb1bf784d7f9571d814d28a73d63ba52668cf62a /src/plugins/autotest/testresult.h | |
parent | ba61f2946d85d6674ca56b4845d598c9d30692b8 (diff) |
AutoTest: Avoid passing around pointer without owner...
...when using signals and slots between threads.
Change-Id: Ib1ce607e225cb8d9973393c5bdaeebaa6e30bb41
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/autotest/testresult.h')
-rw-r--r-- | src/plugins/autotest/testresult.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/autotest/testresult.h b/src/plugins/autotest/testresult.h index 17ae5dc82ba..66073f0ca40 100644 --- a/src/plugins/autotest/testresult.h +++ b/src/plugins/autotest/testresult.h @@ -31,6 +31,7 @@ #include <QString> #include <QColor> #include <QMetaType> +#include <QSharedPointer> namespace Autotest { namespace Internal { @@ -104,6 +105,8 @@ private: // environment? }; +using TestResultPtr = QSharedPointer<TestResult>; + class FaultyTestResult : public TestResult { public: |