Qt: Remove semicolon behind Q_UNUSED macro
Change-Id: I75ff975216da23447b94bc513671ac269c52b7dc Reviewed-on: https://code.wireshark.org/review/21342 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
parent
3b5cfa9a77
commit
30d98d1ea9
|
@ -1356,7 +1356,7 @@ void InterfaceTreeDelegate::bufferSizeChanged(int value)
|
|||
}
|
||||
device->buffer = value;
|
||||
#else
|
||||
Q_UNUSED(value);
|
||||
Q_UNUSED(value)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -350,7 +350,7 @@ interface_t * InterfaceTreeCacheModel::lookup(const QModelIndex &index) const
|
|||
* other method.*/
|
||||
bool InterfaceTreeCacheModel::isAllowedToBeEdited(const QModelIndex &index) const
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(index)
|
||||
|
||||
#ifdef HAVE_LIBPCAP
|
||||
interface_t * device = lookup(index);
|
||||
|
@ -378,7 +378,7 @@ bool InterfaceTreeCacheModel::isAllowedToBeEdited(const QModelIndex &index) cons
|
|||
// Whether this field is available for modification and display.
|
||||
bool InterfaceTreeCacheModel::isAvailableField(const QModelIndex &index) const
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(index)
|
||||
|
||||
#ifdef HAVE_LIBPCAP
|
||||
interface_t * device = lookup(index);
|
||||
|
|
|
@ -247,8 +247,8 @@ QVariant InterfaceTreeModel::data(const QModelIndex &index, int role) const
|
|||
}
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(role);
|
||||
Q_UNUSED(index)
|
||||
Q_UNUSED(role)
|
||||
#endif
|
||||
|
||||
return QVariant();
|
||||
|
@ -389,7 +389,7 @@ QVariant InterfaceTreeModel::toolTipForInterface(int idx) const
|
|||
|
||||
return tt_str;
|
||||
#else
|
||||
Q_UNUSED(idx);
|
||||
Q_UNUSED(idx)
|
||||
|
||||
return QVariant();
|
||||
#endif
|
||||
|
@ -446,7 +446,7 @@ void InterfaceTreeModel::updateStatistic(unsigned int idx)
|
|||
points[device.name].append(diff);
|
||||
emit dataChanged(index(idx, IFTREE_COL_STATS), index(idx, IFTREE_COL_STATS));
|
||||
#else
|
||||
Q_UNUSED(idx);
|
||||
Q_UNUSED(idx)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -460,8 +460,8 @@ void InterfaceTreeModel::getPoints(int idx, PointList *pts)
|
|||
if ( points.contains(device.name) )
|
||||
pts->append(points[device.name]);
|
||||
#else
|
||||
Q_UNUSED(idx);
|
||||
Q_UNUSED(pts);
|
||||
Q_UNUSED(idx)
|
||||
Q_UNUSED(pts)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -538,7 +538,7 @@ bool InterfaceTreeModel::updateSelectedDevices(QItemSelection sourceSelection)
|
|||
}
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(sourceSelection);
|
||||
Q_UNUSED(sourceSelection)
|
||||
#endif
|
||||
return selectionHasChanged;
|
||||
}
|
||||
|
|
|
@ -1055,7 +1055,7 @@ void MainWindow::pipeTimeout() {
|
|||
|
||||
void MainWindow::pipeActivated(int source) {
|
||||
#ifdef _WIN32
|
||||
Q_UNUSED(source);
|
||||
Q_UNUSED(source)
|
||||
#else
|
||||
g_assert(source == pipe_source_);
|
||||
|
||||
|
|
|
@ -296,7 +296,7 @@ void ProgressFrame::show(bool animate, bool terminate_is_stop, gboolean *stop_fl
|
|||
QFrame::show();
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(animate);
|
||||
Q_UNUSED(animate)
|
||||
QFrame::show();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue