"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/processing/models/qgsprocessingmodelalgorithm.cpp" between
QGIS-final-3_14_15.tar.gz and QGIS-final-3_14_16.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Latest release (3.14.x series).

qgsprocessingmodelalgorithm.cpp  (QGIS-final-3_14_15):qgsprocessingmodelalgorithm.cpp  (QGIS-final-3_14_16)
skipping to change at line 266 skipping to change at line 266
} }
} }
} }
return false; return false;
} }
QVariantMap QgsProcessingModelAlgorithm::processAlgorithm( const QVariantMap &pa rameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) QVariantMap QgsProcessingModelAlgorithm::processAlgorithm( const QVariantMap &pa rameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback )
{ {
QSet< QString > toExecute; QSet< QString > toExecute;
QMap< QString, QgsProcessingModelChildAlgorithm >::const_iterator childIt = mC hildAlgorithms.constBegin(); QMap< QString, QgsProcessingModelChildAlgorithm >::const_iterator childIt = mC hildAlgorithms.constBegin();
QSet< QString > broken;
for ( ; childIt != mChildAlgorithms.constEnd(); ++childIt ) for ( ; childIt != mChildAlgorithms.constEnd(); ++childIt )
{ {
if ( childIt->isActive() && childIt->algorithm() ) if ( childIt->isActive() )
toExecute.insert( childIt->childId() ); {
if ( childIt->algorithm() )
toExecute.insert( childIt->childId() );
else
broken.insert( childIt->childId() );
}
} }
if ( !broken.empty() )
throw QgsProcessingException( QCoreApplication::translate( "QgsProcessingMod
elAlgorithm", "Cannot run model, the following algorithms are not available on t
his system: %1" ).arg( broken.values().join( QStringLiteral( ", " ) ) ) );
QElapsedTimer totalTime; QElapsedTimer totalTime;
totalTime.start(); totalTime.start();
QgsProcessingMultiStepFeedback modelFeedback( toExecute.count(), feedback ); QgsProcessingMultiStepFeedback modelFeedback( toExecute.count(), feedback );
QgsExpressionContext baseContext = createExpressionContext( parameters, contex t ); QgsExpressionContext baseContext = createExpressionContext( parameters, contex t );
QVariantMap childResults; QVariantMap childResults;
QVariantMap childInputs; QVariantMap childInputs;
const bool verboseLog = parameterAsBool( parameters, QStringLiteral( "VERBOSE_ LOG" ), context ); const bool verboseLog = parameterAsBool( parameters, QStringLiteral( "VERBOSE_ LOG" ), context );
 End of changes. 3 change blocks. 
2 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)