Skip to content

Commit

Permalink
fix warnings`
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Apr 8, 2017
1 parent e9bd373 commit 4a4b318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgscheckablecombobox.cpp
Expand Up @@ -186,7 +186,7 @@ void QgsCheckableComboBox::showContextMenu( const QPoint &pos )
void QgsCheckableComboBox::selectAllOptions()
{
blockSignals( true );
for ( int i; i < count(); i++ )
for ( int i = 0; i < count(); i++ )
{
setItemData( i, Qt::Checked, Qt::CheckStateRole );
}
Expand All @@ -197,7 +197,7 @@ void QgsCheckableComboBox::selectAllOptions()
void QgsCheckableComboBox::deselectAllOptions()
{
blockSignals( true );
for ( int i; i < count(); i++ )
for ( int i = 0; i < count(); i++ )
{
setItemData( i, Qt::Unchecked, Qt::CheckStateRole );
}
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgscheckablecombobox.h
Expand Up @@ -180,7 +180,7 @@ class GUI_EXPORT QgsCheckableComboBox : public QComboBox
/** Hides the list of items in the combobox if it is currently
* visible and resets the internal state.
*/
virtual void hidePopup();
virtual void hidePopup() override;

/** Filters events to enable context menu
*/
Expand All @@ -204,7 +204,7 @@ class GUI_EXPORT QgsCheckableComboBox : public QComboBox

/** Handler for widget resizing
*/
virtual void resizeEvent( QResizeEvent *event );
virtual void resizeEvent( QResizeEvent *event ) override;

protected slots:

Expand Down

0 comments on commit 4a4b318

Please sign in to comment.