Skip to content
Permalink
Browse files
take II
  • Loading branch information
jef-n authored and nyalldawson committed Aug 11, 2022
1 parent 34a67f1 commit 9c08adf5effe82a1e9420e99f03028a082f50722
Showing 1 changed file with 2 additions and 2 deletions.
@@ -135,7 +135,7 @@ QVariantMap QgsPackageAlgorithm::processAlgorithm( const QVariantMap &parameters
int recursionGuard { 0 };

// This function recursively finds referenced layers
const auto findReferenced = [ &project, &feedback, &recursionGuard, &layers, maxRecursion, this ]( const QgsVectorLayer * vLayer, bool onlySaveSelected, auto &&findReferenced ) -> void
const auto findReferenced = [ =, &project, &feedback, &recursionGuard, &layers ]( const QgsVectorLayer * vLayer, bool onlySaveSelected, auto &&findReferenced ) -> void
{
const QgsVectorLayer *originalLayer { qobject_cast<QgsVectorLayer *>( project->mapLayer( mClonedLayerIds.value( vLayer->id(), vLayer->id() ) ) ) };
Q_ASSERT( originalLayer );
@@ -204,7 +204,7 @@ QVariantMap QgsPackageAlgorithm::processAlgorithm( const QVariantMap &parameters
};

// This function recursively finds referencing layers
const auto findReferencing = [ &project, &feedback, &recursionGuard, &layers, maxRecursion, this ]( const QgsVectorLayer * vLayer, bool onlySaveSelected, auto &&findReferencing ) -> void
const auto findReferencing = [ =, &project, &feedback, &recursionGuard, &layers ]( const QgsVectorLayer * vLayer, bool onlySaveSelected, auto &&findReferencing ) -> void
{
const QgsVectorLayer *originalLayer { qobject_cast<QgsVectorLayer *>( project->mapLayer( mClonedLayerIds.value( vLayer->id(), vLayer->id() ) ) ) };
Q_ASSERT( originalLayer );

0 comments on commit 9c08adf

Please sign in to comment.