File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ class QgsExpression
24
24
* all attributes from the layer are required for evaluation of the expression.
25
25
* QgsFeatureRequest::setSubsetOfAttributes automatically handles this case.
26
26
*/
27
- QStringList referencedColumns();
27
+ QStringList referencedColumns() const ;
28
28
29
29
//! Returns true if the expression uses feature geometry for some computation
30
- bool needsGeometry();
30
+ bool needsGeometry() const ;
31
31
32
32
// evaluation
33
33
Original file line number Diff line number Diff line change @@ -1891,7 +1891,7 @@ QgsExpression::~QgsExpression()
1891
1891
delete mRootNode ;
1892
1892
}
1893
1893
1894
- QStringList QgsExpression::referencedColumns ()
1894
+ QStringList QgsExpression::referencedColumns () const
1895
1895
{
1896
1896
if ( !mRootNode )
1897
1897
return QStringList ();
@@ -1915,7 +1915,7 @@ QStringList QgsExpression::referencedColumns()
1915
1915
return columns;
1916
1916
}
1917
1917
1918
- bool QgsExpression::needsGeometry ()
1918
+ bool QgsExpression::needsGeometry () const
1919
1919
{
1920
1920
if ( !mRootNode )
1921
1921
return false ;
Original file line number Diff line number Diff line change @@ -103,15 +103,16 @@ class CORE_EXPORT QgsExpression
103
103
// ! Get the expression ready for evaluation - find out column indexes.
104
104
bool prepare ( const QgsFields &fields );
105
105
106
- /* *Get list of columns referenced by the expression.
106
+ /* *
107
+ * Get list of columns referenced by the expression.
107
108
* @note if the returned list contains the QgsFeatureRequest::AllAttributes constant then
108
109
* all attributes from the layer are required for evaluation of the expression.
109
110
* QgsFeatureRequest::setSubsetOfAttributes automatically handles this case.
110
111
*/
111
- QStringList referencedColumns ();
112
+ QStringList referencedColumns () const ;
112
113
113
114
// ! Returns true if the expression uses feature geometry for some computation
114
- bool needsGeometry ();
115
+ bool needsGeometry () const ;
115
116
116
117
// evaluation
117
118
You can’t perform that action at this time.
0 commit comments