forked from qt-creator/qt-creator
Decorate some classes and methods with final keyword
This way we silence the clang warnings about calling virtual methods from c'tor or from d'tor: [clang-analyzer-optin.cplusplus.VirtualCall] Change-Id: I8d6318b490152133da4833bda2ba28622bce30dd Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -34,7 +34,7 @@ namespace PluginInterface {
|
||||
/**
|
||||
* @brief The ParalllelItem class represents Parallel-state of the SCXML-standard. It is a extended class from the StateItem.
|
||||
*/
|
||||
class ParallelItem : public StateItem
|
||||
class ParallelItem final : public StateItem
|
||||
{
|
||||
public:
|
||||
explicit ParallelItem(const QPointF &pos = QPointF(), BaseItem *parent = nullptr);
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace PluginInterface {
|
||||
|
||||
class ScxmlTag;
|
||||
|
||||
class SCShapeProvider : public ShapeProvider
|
||||
class SCShapeProvider final : public ShapeProvider
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user