Skip to content

Commit

Permalink
Fix missing members in assignment operators
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 17, 2023
1 parent f28ba2b commit 6a8c909
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/core/maprenderer/qgsmaprendererjob.cpp
Expand Up @@ -91,6 +91,9 @@ LayerRenderJob &LayerRenderJob::operator=( LayerRenderJob &&other )

maskRequiresLayerRasterization = other.maskRequiresLayerRasterization;

elevationMap = other.elevationMap;
maskPainter = std::move( other.maskPainter );

return *this;
}

Expand Down
1 change: 1 addition & 0 deletions src/core/mesh/qgsmeshtracerenderer.cpp
Expand Up @@ -1298,6 +1298,7 @@ QgsMeshParticleTracesField &QgsMeshParticleTracesField::operator=( const QgsMesh
{
QgsMeshStreamField::operator=( other );
mTimeField = other.mTimeField;
mMagnitudeField = other.mMagnitudeField;
mDirectionField = other.mDirectionField;
mParticles = other.mParticles;
mStumpImage = other.mStumpImage;
Expand Down
1 change: 1 addition & 0 deletions src/core/qgsexpressioncontext.cpp
Expand Up @@ -321,6 +321,7 @@ QgsExpressionContext::QgsExpressionContext( const QgsExpressionContext &other )
mLoadLayerFunction = std::make_unique< LoadLayerFunction >();
}

// cppcheck-suppress operatorEqVarError
QgsExpressionContext &QgsExpressionContext::operator=( QgsExpressionContext &&other ) noexcept
{
if ( this != &other )
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgssqlstatement.cpp
Expand Up @@ -153,8 +153,9 @@ QgsSQLStatement &QgsSQLStatement::operator=( const QgsSQLStatement &other )
{
delete mRootNode;
mParserErrorString.clear();
mRootNode = ::parse( other.mStatement, mParserErrorString, other.mAllowFragments );
mStatement = other.mStatement;
mAllowFragments = other.mAllowFragments;
mRootNode = ::parse( mStatement, mParserErrorString, mAllowFragments );
}
return *this;
}
Expand Down

0 comments on commit 6a8c909

Please sign in to comment.