Skip to content

Commit

Permalink
Fix cppcheck warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 15, 2022
1 parent fb9b49c commit 7800bd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsexpressioncontext.cpp
Expand Up @@ -48,6 +48,7 @@ QgsExpressionContextScope::QgsExpressionContextScope( const QgsExpressionContext
, mHasGeometry( other.mHasGeometry )
, mGeometry( other.mGeometry )
, mHiddenVariables( other.mHiddenVariables )
, mLayerStores( other.mLayerStores )
{
QHash<QString, QgsScopedExpressionFunction * >::const_iterator it = other.mFunctions.constBegin();
for ( ; it != other.mFunctions.constEnd(); ++it )
Expand All @@ -65,6 +66,7 @@ QgsExpressionContextScope &QgsExpressionContextScope::operator=( const QgsExpres
mHasGeometry = other.mHasGeometry;
mGeometry = other.mGeometry;
mHiddenVariables = other.mHiddenVariables;
mLayerStores = other.mLayerStores;

qDeleteAll( mFunctions );
mFunctions.clear();
Expand Down

0 comments on commit 7800bd5

Please sign in to comment.