Skip to content

Commit 9ee0453

Browse files
committedApr 22, 2023
Fix clazy warning
1 parent 949a45d commit 9ee0453

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎src/gui/history/qgshistoryentrynode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int QgsHistoryEntryGroup::indexOf( QgsHistoryEntryNode *child ) const
9090
return p.get() == child;
9191
} );
9292
if ( it != mChildren.end() )
93-
return std::distance( mChildren.begin(), it );
93+
return static_cast< int >( std::distance( mChildren.begin(), it ) );
9494
return -1;
9595
}
9696

@@ -118,5 +118,5 @@ void QgsHistoryEntryGroup::clear()
118118

119119
int QgsHistoryEntryGroup::childCount() const
120120
{
121-
return mChildren.size();
121+
return static_cast< int >( mChildren.size() );
122122
}

‎src/gui/history/qgshistorywidget.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class GUI_EXPORT QgsHistoryEntryProxyModel : public QSortFilterProxyModel
4444
QString mFilter;
4545

4646
};
47+
///@endcond PRIVATE
4748
#endif
4849

4950
/**

0 commit comments

Comments
 (0)
Please sign in to comment.