Skip to content
Permalink
Browse files

Allow calling getFeatureSource without feedback

  • Loading branch information
m-kuhn committed Oct 29, 2018
1 parent b219283 commit 9c154520021f04ba9fb348c402d59e361726fe73
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgsvectorlayerutils.h
@@ -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.

0 comments on commit 9c15452

Please sign in to comment.
You can’t perform that action at this time.