Skip to content
Permalink
Browse files

Remove const from count method

  • Loading branch information
nyalldawson committed Dec 28, 2017
1 parent 4d2f0de commit 811145eb96cb5b2ebc33eb0a2adc7c402fbe7f0c
@@ -46,7 +46,7 @@ is available or required.
Ends the render, performing any required cleanup tasks.
%End

virtual int count() const = 0;
virtual int count() = 0;
%Docstring
Returns the number of features to iterate over.
%End
@@ -268,7 +268,7 @@ number of matching features.

virtual bool endRender();

virtual int count() const;
virtual int count();

virtual QString filePath( const QString &baseFilePath, const QString &extension );

@@ -1053,7 +1053,7 @@ For instance, current page name and number.
:param atlas: source atlas. If null, a set of default atlas variables will be added to the scope.
%End

static QgsExpressionContextScope *atlasScope( const QgsLayoutAtlas *atlas ) /Factory/;
static QgsExpressionContextScope *atlasScope( QgsLayoutAtlas *atlas ) /Factory/;
%Docstring
Creates a new scope which contains variables and functions relating to a :py:class:`QgsLayoutAtlas`.
For instance, current page name and number.
@@ -48,7 +48,7 @@ class CORE_EXPORT QgsAbstractLayoutIterator
/**
* Returns the number of features to iterate over.
*/
virtual int count() const = 0;
virtual int count() = 0;

/**
* Iterates to next feature, returning false if no more features exist to iterate over.
@@ -334,7 +334,7 @@ bool QgsLayoutAtlas::endRender()
return true;
}

int QgsLayoutAtlas::count() const
int QgsLayoutAtlas::count()
{
return mFeatureIds.size();
}
@@ -241,7 +241,7 @@ class CORE_EXPORT QgsLayoutAtlas : public QObject, public QgsAbstractLayoutItera

bool beginRender() override;
bool endRender() override;
int count() const override;
int count() override;
QString filePath( const QString &baseFilePath, const QString &extension ) override;

/**
@@ -1222,7 +1222,7 @@ QgsExpressionContextScope *QgsExpressionContextUtils::compositionAtlasScope( con
return scope;
}

QgsExpressionContextScope *QgsExpressionContextUtils::atlasScope( const QgsLayoutAtlas *atlas )
QgsExpressionContextScope *QgsExpressionContextUtils::atlasScope( QgsLayoutAtlas *atlas )
{
QgsExpressionContextScope *scope = new QgsExpressionContextScope( QObject::tr( "Atlas" ) );
if ( !atlas )
@@ -935,7 +935,7 @@ class CORE_EXPORT QgsExpressionContextUtils
* For instance, current page name and number.
* \param atlas source atlas. If null, a set of default atlas variables will be added to the scope.
*/
static QgsExpressionContextScope *atlasScope( const QgsLayoutAtlas *atlas ) SIP_FACTORY;
static QgsExpressionContextScope *atlasScope( QgsLayoutAtlas *atlas ) SIP_FACTORY;

/**
* Creates a new scope which contains variables and functions relating to a QgsComposerItem.

0 comments on commit 811145e

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