Skip to content
Permalink
Browse files

Mark method as const

(cherry picked from commit 8c45aad)
  • Loading branch information
nyalldawson committed Nov 20, 2020
1 parent 658e81f commit 77b9937b54ec72627c3b6a807b4d284def31b142
@@ -169,7 +169,7 @@ Returns the animation temporal range cumulative settings.
.. seealso:: :py:func:`setTemporalRangeCumulative`
%End

long long totalFrameCount();
long long totalFrameCount() const;
%Docstring
Returns the total number of frames for the navigation.
%End
@@ -288,7 +288,7 @@ void QgsTemporalNavigationObject::skipToEnd()
setCurrentFrameNumber( frame );
}

long long QgsTemporalNavigationObject::totalFrameCount()
long long QgsTemporalNavigationObject::totalFrameCount() const
{
QgsInterval totalAnimationLength = mTemporalExtents.end() - mTemporalExtents.begin();
return std::floor( totalAnimationLength.seconds() / mFrameDuration.seconds() ) + 1;
@@ -187,7 +187,7 @@ class CORE_EXPORT QgsTemporalNavigationObject : public QgsTemporalController, pu
/**
* Returns the total number of frames for the navigation.
*/
long long totalFrameCount();
long long totalFrameCount() const;

/**
* Returns TRUE if the animation should loop after hitting the end or start frame.

0 comments on commit 77b9937

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