Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix clazy warning
  • Loading branch information
nyalldawson committed Apr 22, 2023
1 parent 949a45d commit 9ee0453
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/history/qgshistoryentrynode.cpp
Expand Up @@ -90,7 +90,7 @@ int QgsHistoryEntryGroup::indexOf( QgsHistoryEntryNode *child ) const
return p.get() == child;
} );
if ( it != mChildren.end() )
return std::distance( mChildren.begin(), it );
return static_cast< int >( std::distance( mChildren.begin(), it ) );
return -1;
}

Expand Down Expand Up @@ -118,5 +118,5 @@ void QgsHistoryEntryGroup::clear()

int QgsHistoryEntryGroup::childCount() const
{
return mChildren.size();
return static_cast< int >( mChildren.size() );
}
1 change: 1 addition & 0 deletions src/gui/history/qgshistorywidget.h
Expand Up @@ -44,6 +44,7 @@ class GUI_EXPORT QgsHistoryEntryProxyModel : public QSortFilterProxyModel
QString mFilter;

};
///@endcond PRIVATE
#endif

/**
Expand Down

0 comments on commit 9ee0453

Please sign in to comment.