Skip to content

Commit 811145e

Browse files
committedJan 5, 2018
Remove const from count method
1 parent 4d2f0de commit 811145e

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed
 

‎python/core/layout/qgsabstractlayoutiterator.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ is available or required.
4646
Ends the render, performing any required cleanup tasks.
4747
%End
4848

49-
virtual int count() const = 0;
49+
virtual int count() = 0;
5050
%Docstring
5151
Returns the number of features to iterate over.
5252
%End

‎python/core/layout/qgslayoutatlas.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ number of matching features.
268268

269269
virtual bool endRender();
270270

271-
virtual int count() const;
271+
virtual int count();
272272

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

‎python/core/qgsexpressioncontext.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ For instance, current page name and number.
10531053
:param atlas: source atlas. If null, a set of default atlas variables will be added to the scope.
10541054
%End
10551055

1056-
static QgsExpressionContextScope *atlasScope( const QgsLayoutAtlas *atlas ) /Factory/;
1056+
static QgsExpressionContextScope *atlasScope( QgsLayoutAtlas *atlas ) /Factory/;
10571057
%Docstring
10581058
Creates a new scope which contains variables and functions relating to a :py:class:`QgsLayoutAtlas`.
10591059
For instance, current page name and number.

‎src/core/layout/qgsabstractlayoutiterator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CORE_EXPORT QgsAbstractLayoutIterator
4848
/**
4949
* Returns the number of features to iterate over.
5050
*/
51-
virtual int count() const = 0;
51+
virtual int count() = 0;
5252

5353
/**
5454
* Iterates to next feature, returning false if no more features exist to iterate over.

‎src/core/layout/qgslayoutatlas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ bool QgsLayoutAtlas::endRender()
334334
return true;
335335
}
336336

337-
int QgsLayoutAtlas::count() const
337+
int QgsLayoutAtlas::count()
338338
{
339339
return mFeatureIds.size();
340340
}

‎src/core/layout/qgslayoutatlas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class CORE_EXPORT QgsLayoutAtlas : public QObject, public QgsAbstractLayoutItera
241241

242242
bool beginRender() override;
243243
bool endRender() override;
244-
int count() const override;
244+
int count() override;
245245
QString filePath( const QString &baseFilePath, const QString &extension ) override;
246246

247247
/**

‎src/core/qgsexpressioncontext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ QgsExpressionContextScope *QgsExpressionContextUtils::compositionAtlasScope( con
12221222
return scope;
12231223
}
12241224

1225-
QgsExpressionContextScope *QgsExpressionContextUtils::atlasScope( const QgsLayoutAtlas *atlas )
1225+
QgsExpressionContextScope *QgsExpressionContextUtils::atlasScope( QgsLayoutAtlas *atlas )
12261226
{
12271227
QgsExpressionContextScope *scope = new QgsExpressionContextScope( QObject::tr( "Atlas" ) );
12281228
if ( !atlas )

‎src/core/qgsexpressioncontext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ class CORE_EXPORT QgsExpressionContextUtils
935935
* For instance, current page name and number.
936936
* \param atlas source atlas. If null, a set of default atlas variables will be added to the scope.
937937
*/
938-
static QgsExpressionContextScope *atlasScope( const QgsLayoutAtlas *atlas ) SIP_FACTORY;
938+
static QgsExpressionContextScope *atlasScope( QgsLayoutAtlas *atlas ) SIP_FACTORY;
939939

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

0 commit comments

Comments
 (0)
Please sign in to comment.