Skip to content

Commit 22dda85

Browse files
committedApr 17, 2023
Fix missing copy in QgsSQLStatement copy constructor
No real bug here -- the value is unused outside of the constructor
1 parent 4b9c6c0 commit 22dda85

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/core/qgssqlstatement.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,10 @@ QgsSQLStatement::QgsSQLStatement( const QString &expr, bool allowFragments )
141141
}
142142

143143
QgsSQLStatement::QgsSQLStatement( const QgsSQLStatement &other )
144+
: mAllowFragments( other.mAllowFragments )
145+
, mStatement( other.mStatement )
144146
{
145-
mRootNode = ::parse( other.mStatement, mParserErrorString, other.mAllowFragments );
146-
mStatement = other.mStatement;
147+
mRootNode = ::parse( mStatement, mParserErrorString, mAllowFragments );
147148
}
148149

149150
QgsSQLStatement &QgsSQLStatement::operator=( const QgsSQLStatement &other )

0 commit comments

Comments
 (0)
Please sign in to comment.