refactor(core): remove empty overrided destructor

This commit is contained in:
Julien Cabieces 2025-05-07 13:16:15 +02:00 committed by Nyall Dawson
parent bd970ea77b
commit a3b5232612
4 changed files with 0 additions and 28 deletions

View File

@ -311,7 +311,6 @@ Unary logical/arithmetical operator ( NOT, - ).
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeUnaryOperator();
QgsSQLStatement::UnaryOperator op() const; QgsSQLStatement::UnaryOperator op() const;
@ -351,7 +350,6 @@ Binary logical/arithmetical operator (AND, OR, =, +, ...).
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeBinaryOperator();
QgsSQLStatement::BinaryOperator op() const; QgsSQLStatement::BinaryOperator op() const;
@ -407,7 +405,6 @@ An 'x IN (y, z)' operator.
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeInOperator();
QgsSQLStatement::Node *node() const; QgsSQLStatement::Node *node() const;
@ -453,7 +450,6 @@ An 'X BETWEEN y and z' operator.
Constructor Constructor
%End %End
QgsSQLStatement::Node *node() const; QgsSQLStatement::Node *node() const;
%Docstring %Docstring
Variable at the left of BETWEEN Variable at the left of BETWEEN
@ -501,7 +497,6 @@ Function with a name and arguments node.
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeFunction();
QString name() const; QString name() const;
@ -632,7 +627,6 @@ Selected column.
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeSelectedColumn();
void setAlias( const QString &alias ); void setAlias( const QString &alias );
@ -681,7 +675,6 @@ CAST operator.
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeCast();
QgsSQLStatement::Node *node() const; QgsSQLStatement::Node *node() const;
@ -783,7 +776,6 @@ Constructor with table definition, ON expression
%Docstring %Docstring
Constructor with table definition and USING columns Constructor with table definition and USING columns
%End %End
~NodeJoin();
QgsSQLStatement::NodeTableDef *tableDef() const; QgsSQLStatement::NodeTableDef *tableDef() const;
@ -838,7 +830,6 @@ Column in a ORDER BY.
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeColumnSorted();
QgsSQLStatement::NodeColumnRef *column() const; QgsSQLStatement::NodeColumnRef *column() const;

View File

@ -311,7 +311,6 @@ Unary logical/arithmetical operator ( NOT, - ).
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeUnaryOperator();
QgsSQLStatement::UnaryOperator op() const; QgsSQLStatement::UnaryOperator op() const;
@ -351,7 +350,6 @@ Binary logical/arithmetical operator (AND, OR, =, +, ...).
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeBinaryOperator();
QgsSQLStatement::BinaryOperator op() const; QgsSQLStatement::BinaryOperator op() const;
@ -407,7 +405,6 @@ An 'x IN (y, z)' operator.
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeInOperator();
QgsSQLStatement::Node *node() const; QgsSQLStatement::Node *node() const;
@ -453,7 +450,6 @@ An 'X BETWEEN y and z' operator.
Constructor Constructor
%End %End
QgsSQLStatement::Node *node() const; QgsSQLStatement::Node *node() const;
%Docstring %Docstring
Variable at the left of BETWEEN Variable at the left of BETWEEN
@ -501,7 +497,6 @@ Function with a name and arguments node.
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeFunction();
QString name() const; QString name() const;
@ -632,7 +627,6 @@ Selected column.
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeSelectedColumn();
void setAlias( const QString &alias ); void setAlias( const QString &alias );
@ -681,7 +675,6 @@ CAST operator.
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeCast();
QgsSQLStatement::Node *node() const; QgsSQLStatement::Node *node() const;
@ -783,7 +776,6 @@ Constructor with table definition, ON expression
%Docstring %Docstring
Constructor with table definition and USING columns Constructor with table definition and USING columns
%End %End
~NodeJoin();
QgsSQLStatement::NodeTableDef *tableDef() const; QgsSQLStatement::NodeTableDef *tableDef() const;
@ -838,7 +830,6 @@ Column in a ORDER BY.
%Docstring %Docstring
Constructor Constructor
%End %End
~NodeColumnSorted();
QgsSQLStatement::NodeColumnRef *column() const; QgsSQLStatement::NodeColumnRef *column() const;

View File

@ -594,7 +594,6 @@ QgsSQLStatement::NodeSelect::~NodeSelect()
qDeleteAll( mTableList ); qDeleteAll( mTableList );
qDeleteAll( mColumns ); qDeleteAll( mColumns );
qDeleteAll( mJoins ); qDeleteAll( mJoins );
qDeleteAll( mOrderBy ); qDeleteAll( mOrderBy );
} }

View File

@ -327,7 +327,6 @@ class CORE_EXPORT QgsSQLStatement
public: public:
//! Constructor //! Constructor
NodeUnaryOperator( QgsSQLStatement::UnaryOperator op, QgsSQLStatement::Node *operand SIP_TRANSFER ) : mOp( op ), mOperand( operand ) {} NodeUnaryOperator( QgsSQLStatement::UnaryOperator op, QgsSQLStatement::Node *operand SIP_TRANSFER ) : mOp( op ), mOperand( operand ) {}
~NodeUnaryOperator() override { }
NodeUnaryOperator( const NodeUnaryOperator &other ) = delete; NodeUnaryOperator( const NodeUnaryOperator &other ) = delete;
NodeUnaryOperator &operator=( const NodeUnaryOperator &other ) = delete; NodeUnaryOperator &operator=( const NodeUnaryOperator &other ) = delete;
@ -367,7 +366,6 @@ class CORE_EXPORT QgsSQLStatement
, mOpLeft( opLeft ) , mOpLeft( opLeft )
, mOpRight( opRight ) , mOpRight( opRight )
{} {}
~NodeBinaryOperator() override { }
NodeBinaryOperator( const NodeBinaryOperator &other ) = delete; NodeBinaryOperator( const NodeBinaryOperator &other ) = delete;
NodeBinaryOperator &operator=( const NodeBinaryOperator &other ) = delete; NodeBinaryOperator &operator=( const NodeBinaryOperator &other ) = delete;
@ -414,7 +412,6 @@ class CORE_EXPORT QgsSQLStatement
public: public:
//! Constructor //! Constructor
NodeInOperator( QgsSQLStatement::Node *node SIP_TRANSFER, QgsSQLStatement::NodeList *list SIP_TRANSFER, bool notin = false ) : mNode( node ), mList( list ), mNotIn( notin ) {} NodeInOperator( QgsSQLStatement::Node *node SIP_TRANSFER, QgsSQLStatement::NodeList *list SIP_TRANSFER, bool notin = false ) : mNode( node ), mList( list ), mNotIn( notin ) {}
~NodeInOperator() override { }
NodeInOperator( const NodeInOperator &other ) = delete; NodeInOperator( const NodeInOperator &other ) = delete;
NodeInOperator &operator=( const NodeInOperator &other ) = delete; NodeInOperator &operator=( const NodeInOperator &other ) = delete;
@ -455,7 +452,6 @@ class CORE_EXPORT QgsSQLStatement
//! Constructor //! Constructor
NodeBetweenOperator( QgsSQLStatement::Node *node SIP_TRANSFER, QgsSQLStatement::Node *minVal SIP_TRANSFER, QgsSQLStatement::Node *maxVal SIP_TRANSFER, bool notBetween = false ) NodeBetweenOperator( QgsSQLStatement::Node *node SIP_TRANSFER, QgsSQLStatement::Node *minVal SIP_TRANSFER, QgsSQLStatement::Node *maxVal SIP_TRANSFER, bool notBetween = false )
: mNode( node ), mMinVal( minVal ), mMaxVal( maxVal ), mNotBetween( notBetween ) {} : mNode( node ), mMinVal( minVal ), mMaxVal( maxVal ), mNotBetween( notBetween ) {}
~NodeBetweenOperator() override { }
NodeBetweenOperator( const NodeBetweenOperator &other ) = delete; NodeBetweenOperator( const NodeBetweenOperator &other ) = delete;
NodeBetweenOperator &operator=( const NodeBetweenOperator &other ) = delete; NodeBetweenOperator &operator=( const NodeBetweenOperator &other ) = delete;
@ -499,7 +495,6 @@ class CORE_EXPORT QgsSQLStatement
public: public:
//! Constructor //! Constructor
NodeFunction( const QString &name, QgsSQLStatement::NodeList *args SIP_TRANSFER ) : mName( name ), mArgs( args ) {} NodeFunction( const QString &name, QgsSQLStatement::NodeList *args SIP_TRANSFER ) : mName( name ), mArgs( args ) {}
~NodeFunction() override { }
NodeFunction( const NodeFunction &other ) = delete; NodeFunction( const NodeFunction &other ) = delete;
NodeFunction &operator=( const NodeFunction &other ) = delete; NodeFunction &operator=( const NodeFunction &other ) = delete;
@ -601,7 +596,6 @@ class CORE_EXPORT QgsSQLStatement
public: public:
//! Constructor //! Constructor
NodeSelectedColumn( QgsSQLStatement::Node *node SIP_TRANSFER ) : mColumnNode( node ) {} NodeSelectedColumn( QgsSQLStatement::Node *node SIP_TRANSFER ) : mColumnNode( node ) {}
~NodeSelectedColumn() override { }
NodeSelectedColumn( const NodeSelectedColumn &other ) = delete; NodeSelectedColumn( const NodeSelectedColumn &other ) = delete;
NodeSelectedColumn &operator=( const NodeSelectedColumn &other ) = delete; NodeSelectedColumn &operator=( const NodeSelectedColumn &other ) = delete;
@ -642,7 +636,6 @@ class CORE_EXPORT QgsSQLStatement
public: public:
//! Constructor //! Constructor
NodeCast( QgsSQLStatement::Node *node SIP_TRANSFER, const QString &type ) : mNode( node ), mType( type ) {} NodeCast( QgsSQLStatement::Node *node SIP_TRANSFER, const QString &type ) : mNode( node ), mType( type ) {}
~NodeCast() override { }
NodeCast( const NodeCast &other ) = delete; NodeCast( const NodeCast &other ) = delete;
NodeCast &operator=( const NodeCast &other ) = delete; NodeCast &operator=( const NodeCast &other ) = delete;
@ -726,7 +719,6 @@ class CORE_EXPORT QgsSQLStatement
NodeJoin( QgsSQLStatement::NodeTableDef *tabledef SIP_TRANSFER, QgsSQLStatement::Node *onExpr SIP_TRANSFER, QgsSQLStatement::JoinType type ) : mTableDef( tabledef ), mOnExpr( onExpr ), mType( type ) {} NodeJoin( QgsSQLStatement::NodeTableDef *tabledef SIP_TRANSFER, QgsSQLStatement::Node *onExpr SIP_TRANSFER, QgsSQLStatement::JoinType type ) : mTableDef( tabledef ), mOnExpr( onExpr ), mType( type ) {}
//! Constructor with table definition and USING columns //! Constructor with table definition and USING columns
NodeJoin( QgsSQLStatement::NodeTableDef *tabledef SIP_TRANSFER, const QList<QString> &usingColumns, QgsSQLStatement::JoinType type ) : mTableDef( tabledef ), mUsingColumns( usingColumns ), mType( type ) {} NodeJoin( QgsSQLStatement::NodeTableDef *tabledef SIP_TRANSFER, const QList<QString> &usingColumns, QgsSQLStatement::JoinType type ) : mTableDef( tabledef ), mUsingColumns( usingColumns ), mType( type ) {}
~NodeJoin() override { }
NodeJoin( const NodeJoin &other ) = delete; NodeJoin( const NodeJoin &other ) = delete;
NodeJoin &operator=( const NodeJoin &other ) = delete; NodeJoin &operator=( const NodeJoin &other ) = delete;
@ -772,7 +764,6 @@ class CORE_EXPORT QgsSQLStatement
public: public:
//! Constructor //! Constructor
NodeColumnSorted( QgsSQLStatement::NodeColumnRef *column SIP_TRANSFER, bool asc ) : mColumn( column ), mAsc( asc ) {} NodeColumnSorted( QgsSQLStatement::NodeColumnRef *column SIP_TRANSFER, bool asc ) : mColumn( column ), mAsc( asc ) {}
~NodeColumnSorted() override { }
NodeColumnSorted( const NodeColumnSorted &other ) = delete; NodeColumnSorted( const NodeColumnSorted &other ) = delete;
NodeColumnSorted &operator=( const NodeColumnSorted &other ) = delete; NodeColumnSorted &operator=( const NodeColumnSorted &other ) = delete;