Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix missing copy in QgsSQLStatement copy constructor
No real bug here -- the value is unused outside of the constructor
  • Loading branch information
nyalldawson committed Apr 17, 2023
1 parent 4b9c6c0 commit 22dda85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/qgssqlstatement.cpp
Expand Up @@ -141,9 +141,10 @@ QgsSQLStatement::QgsSQLStatement( const QString &expr, bool allowFragments )
}

QgsSQLStatement::QgsSQLStatement( const QgsSQLStatement &other )
: mAllowFragments( other.mAllowFragments )
, mStatement( other.mStatement )
{
mRootNode = ::parse( other.mStatement, mParserErrorString, other.mAllowFragments );
mStatement = other.mStatement;
mRootNode = ::parse( mStatement, mParserErrorString, mAllowFragments );
}

QgsSQLStatement &QgsSQLStatement::operator=( const QgsSQLStatement &other )
Expand Down

0 comments on commit 22dda85

Please sign in to comment.