Skip to content
Permalink
Browse files
Update qgsalgorithmpackage.cpp
  • Loading branch information
jef-n authored and nyalldawson committed Aug 11, 2022
1 parent 203f735 commit 34a67f1d85574c0f3fb4957571fd54009c42dc01
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, maxRecursion, this ]( 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, maxRecursion, this ]( 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 34a67f1

Please sign in to comment.