fix warnings`

This commit is contained in:
Alexander Bruy 2017-04-07 12:34:48 +03:00
parent e9bd373d0c
commit 4a4b3184ef
2 changed files with 4 additions and 4 deletions

View File

@ -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 );
}
@ -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 );
}

View File

@ -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
*/
@ -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: