@@ -133,23 +133,23 @@ void ModelTest::nonDestructiveBasicTest()
133
133
Qt::ItemFlags flags = model->flags ( QModelIndex () );
134
134
Q_ASSERT ( flags == Qt::ItemIsDropEnabled || flags == 0 );
135
135
( void )model->hasChildren ( QModelIndex () );
136
- model->hasIndex ( 0 , 0 );
137
- model->headerData ( 0 , Qt::Horizontal );
138
- model->index ( 0 , 0 );
139
- model->itemData ( QModelIndex () );
136
+ ( void ) model->hasIndex ( 0 , 0 );
137
+ ( void ) model->headerData ( 0 , Qt::Horizontal );
138
+ ( void ) model->index ( 0 , 0 );
139
+ ( void ) model->itemData ( QModelIndex () );
140
140
QVariant cache;
141
- model->match ( QModelIndex (), -1 , cache );
142
- model->mimeTypes ();
141
+ ( void ) model->match ( QModelIndex (), -1 , cache );
142
+ ( void ) model->mimeTypes ();
143
143
Q_ASSERT ( model->parent ( QModelIndex () ) == QModelIndex () );
144
144
Q_ASSERT ( model->rowCount () >= 0 );
145
145
QVariant variant;
146
- model->setData ( QModelIndex (), variant, -1 );
147
- model->setHeaderData ( -1 , Qt::Horizontal, QVariant () );
148
- model->setHeaderData ( 999999 , Qt::Horizontal, QVariant () );
146
+ ( void ) model->setData ( QModelIndex (), variant, -1 );
147
+ ( void ) model->setHeaderData ( -1 , Qt::Horizontal, QVariant () );
148
+ ( void ) model->setHeaderData ( 999999 , Qt::Horizontal, QVariant () );
149
149
QMap<int , QVariant> roles;
150
- model->sibling ( 0 , 0 , QModelIndex () );
151
- model->span ( QModelIndex () );
152
- model->supportedDropActions ();
150
+ ( void ) model->sibling ( 0 , 0 , QModelIndex () );
151
+ ( void ) model->span ( QModelIndex () );
152
+ ( void ) model->supportedDropActions ();
153
153
}
154
154
155
155
/* !
0 commit comments