Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
rduivenvoorde and m-kuhn committed Sep 5, 2020
1 parent 3c79dc9 commit f1ce637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/qgstemporalnavigationobject.h
Expand Up @@ -220,7 +220,7 @@ class CORE_EXPORT QgsTemporalNavigationObject : public QgsTemporalController, pu
/**
* Emitted whenever the temporalExtent \a extent changes.
*/
void temporalExtentsChanged( QgsDateTimeRange extent );
void temporalExtentsChanged( const QgsDateTimeRange &extent );

public slots:

Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgstemporalcontrollerwidget.cpp
Expand Up @@ -577,7 +577,7 @@ void QgsTemporalControllerWidget::setDates( const QgsDateTimeRange &range )
whileBlocking( mFixedRangeEndDateTime )->setDateTime( range.end() );
// only if range is different from mNavigationObject->temporalExtents update
// else recursion as updateTemporalExtent itself calls mNavigationObject->setTemporalExtents
if ( !( range == mNavigationObject->temporalExtents() ) )
if ( range != mNavigationObject->temporalExtents() )
{
updateTemporalExtent();
}
Expand Down

0 comments on commit f1ce637

Please sign in to comment.