Skip to content

Commit

Permalink
Allow calling getFeatureSource without feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 30, 2018
1 parent b219283 commit 9c15452
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsvectorlayerutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@ class CORE_EXPORT QgsVectorLayerUtils
* This should be used in scenarios, where a ``QWeakPointer<QgsVectorLayer>`` is kept in a thread
* and features should be fetched from this layer. Using the layer directly is not safe to do.
* The result will be ``nullptr`` if the layer has been deleted.
* If \a feedback is specified, the call will return if the feedback is canceled.
*
* \note Requires Qt >= 5.10 to make use of the thread-safe implementation
* \since QGIS 3.4
*/
static std::unique_ptr<QgsVectorLayerFeatureSource> getFeatureSource( QPointer<QgsVectorLayer> layer, QgsFeedback *feedback ) SIP_SKIP;
static std::unique_ptr<QgsVectorLayerFeatureSource> getFeatureSource( QPointer<QgsVectorLayer> layer, QgsFeedback *feedback = nullptr ) SIP_SKIP;

/**
* Matches the attributes in \a feature to the specified \a fields.
Expand Down

0 comments on commit 9c15452

Please sign in to comment.