forked from qt-creator/qt-creator
Make CppProjectUdpater a final class
Silence the warning: "Call to virtual method 'CppProjectUdpater::cancel' during destruction bypasses virtual dispatch". CppProjectUpdater's d'tor calls cancelAndWaitForFinished(), and the latter calls in turn virtual cancel() method. As long as we don't have subclasses of CppProjectUdpater, calling a virtual cancel() from the d'tor should be safe. Change-Id: If2ebe6a190649319401d4e4b0f6977f547c51dac Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -47,7 +47,7 @@ public:
|
|||||||
Q_INVOKABLE CppTools::CppProjectUpdaterInterface *create();
|
Q_INVOKABLE CppTools::CppProjectUpdaterInterface *create();
|
||||||
};
|
};
|
||||||
|
|
||||||
class CPPTOOLS_EXPORT CppProjectUpdater : public QObject, public CppProjectUpdaterInterface
|
class CPPTOOLS_EXPORT CppProjectUpdater final : public QObject, public CppProjectUpdaterInterface
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user