Commit 16a3aea6 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Remove unnecessary semicolons after Q_UNUSED

GIT_SILENT
parent 3512293b
......@@ -39,7 +39,7 @@ DBusInterface::DBusInterface() :
void DBusInterface::ShowFolders(const QStringList& uriList, const QString& startUpId)
{
Q_UNUSED(startUpId);
Q_UNUSED(startUpId)
const QList<QUrl> urls = Dolphin::validateUris(uriList);
if (urls.isEmpty()) {
return;
......@@ -52,7 +52,7 @@ void DBusInterface::ShowFolders(const QStringList& uriList, const QString& start
void DBusInterface::ShowItems(const QStringList& uriList, const QString& startUpId)
{
Q_UNUSED(startUpId);
Q_UNUSED(startUpId)
const QList<QUrl> urls = Dolphin::validateUris(uriList);
if (urls.isEmpty()) {
return;
......@@ -65,7 +65,7 @@ void DBusInterface::ShowItems(const QStringList& uriList, const QString& startUp
void DBusInterface::ShowItemProperties(const QStringList& uriList, const QString& startUpId)
{
Q_UNUSED(startUpId);
Q_UNUSED(startUpId)
const QList<QUrl> urls = Dolphin::validateUris(uriList);
if (!urls.isEmpty()) {
KPropertiesDialog::showDialog(urls);
......
......@@ -348,7 +348,7 @@ void DolphinTabPage::slotViewActivated()
void DolphinTabPage::slotViewUrlRedirection(const QUrl& oldUrl, const QUrl& newUrl)
{
Q_UNUSED(oldUrl);
Q_UNUSED(oldUrl)
emit activeViewUrlChanged(newUrl);
}
......
......@@ -726,7 +726,7 @@ void DolphinViewContainer::slotUrlSelectionRequested(const QUrl& url)
void DolphinViewContainer::redirect(const QUrl& oldUrl, const QUrl& newUrl)
{
Q_UNUSED(oldUrl);
Q_UNUSED(oldUrl)
const bool block = m_urlNavigator->signalsBlocked();
m_urlNavigator->blockSignals(true);
......
......@@ -213,7 +213,7 @@ void KFileItemListView::initializeItemListWidget(KItemListWidget* item)
void KFileItemListView::onPreviewsShownChanged(bool shown)
{
Q_UNUSED(shown);
Q_UNUSED(shown)
}
void KFileItemListView::onItemLayoutChanged(ItemLayout current, ItemLayout previous)
......@@ -246,8 +246,8 @@ void KFileItemListView::onScrollOrientationChanged(Qt::Orientation current, Qt::
void KFileItemListView::onItemSizeChanged(const QSizeF& current, const QSizeF& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
triggerVisibleIndexRangeUpdate();
}
......
......@@ -785,13 +785,13 @@ QList<KFileItemModel::RoleInfo> KFileItemModel::rolesInformation()
void KFileItemModel::onGroupedSortingChanged(bool current)
{
Q_UNUSED(current);
Q_UNUSED(current)
m_groups.clear();
}
void KFileItemModel::onSortRoleChanged(const QByteArray& current, const QByteArray& previous, bool resortItems)
{
Q_UNUSED(previous);
Q_UNUSED(previous)
m_sortRole = typeForRole(current);
if (!m_requestRole[m_sortRole]) {
......@@ -807,8 +807,8 @@ void KFileItemModel::onSortRoleChanged(const QByteArray& current, const QByteArr
void KFileItemModel::onSortOrderChanged(Qt::SortOrder current, Qt::SortOrder previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
resortAllItems();
}
......
......@@ -355,7 +355,7 @@ void KFileItemModelRolesUpdater::slotItemsInserted(const KItemRangeList& itemRan
void KFileItemModelRolesUpdater::slotItemsRemoved(const KItemRangeList& itemRanges)
{
Q_UNUSED(itemRanges);
Q_UNUSED(itemRanges)
const bool allItemsRemoved = (m_model->count() == 0);
......@@ -407,8 +407,8 @@ void KFileItemModelRolesUpdater::slotItemsRemoved(const KItemRangeList& itemRang
void KFileItemModelRolesUpdater::slotItemsMoved(const KItemRange& itemRange, const QList<int> &movedToIndexes)
{
Q_UNUSED(itemRange);
Q_UNUSED(movedToIndexes);
Q_UNUSED(itemRange)
Q_UNUSED(movedToIndexes)
// The visible items might have changed.
startUpdating();
......@@ -417,7 +417,7 @@ void KFileItemModelRolesUpdater::slotItemsMoved(const KItemRange& itemRange, con
void KFileItemModelRolesUpdater::slotItemsChanged(const KItemRangeList& itemRanges,
const QSet<QByteArray>& roles)
{
Q_UNUSED(roles);
Q_UNUSED(roles)
// Find out if slotItemsChanged() has been done recently. If that is the
// case, resolving the roles is postponed until a timer has exceeded
......@@ -445,8 +445,8 @@ void KFileItemModelRolesUpdater::slotItemsChanged(const KItemRangeList& itemRang
void KFileItemModelRolesUpdater::slotSortRoleChanged(const QByteArray& current,
const QByteArray& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
if (m_resolvableRoles.contains(current)) {
m_pendingSortRoleItems.clear();
......@@ -711,7 +711,7 @@ void KFileItemModelRolesUpdater::applyChangedBalooRoles(const QString& file)
}
applyChangedBalooRolesForItem(item);
#else
Q_UNUSED(file);
Q_UNUSED(file)
#endif
}
......@@ -745,7 +745,7 @@ void KFileItemModelRolesUpdater::applyChangedBalooRolesForItem(const KFileItem &
this, &KFileItemModelRolesUpdater::slotItemsChanged);
#else
#ifndef Q_CC_MSVC
Q_UNUSED(item);
Q_UNUSED(item)
#endif
#endif
}
......
......@@ -186,14 +186,14 @@ void KItemListContainer::wheelEvent(QWheelEvent* event)
void KItemListContainer::slotScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous)
{
Q_UNUSED(previous);
Q_UNUSED(previous)
updateSmoothScrollers(current);
}
void KItemListContainer::slotModelChanged(KItemModelBase* current, KItemModelBase* previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListContainer::slotViewChanged(KItemListView* current, KItemListView* previous)
......
......@@ -525,7 +525,7 @@ void KItemListController::slotAutoActivationTimeout()
bool KItemListController::inputMethodEvent(QInputMethodEvent* event)
{
Q_UNUSED(event);
Q_UNUSED(event)
return false;
}
......@@ -845,8 +845,8 @@ bool KItemListController::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event,
bool KItemListController::dragEnterEvent(QGraphicsSceneDragDropEvent* event, const QTransform& transform)
{
Q_UNUSED(event);
Q_UNUSED(transform);
Q_UNUSED(event)
Q_UNUSED(transform)
DragAndDropHelper::clearUrlListMatchesUrlCache();
......@@ -855,8 +855,8 @@ bool KItemListController::dragEnterEvent(QGraphicsSceneDragDropEvent* event, con
bool KItemListController::dragLeaveEvent(QGraphicsSceneDragDropEvent* event, const QTransform& transform)
{
Q_UNUSED(event);
Q_UNUSED(transform);
Q_UNUSED(event)
Q_UNUSED(transform)
m_autoActivationTimer->stop();
m_view->setAutoScroll(false);
......@@ -969,14 +969,14 @@ bool KItemListController::dropEvent(QGraphicsSceneDragDropEvent* event, const QT
bool KItemListController::hoverEnterEvent(QGraphicsSceneHoverEvent* event, const QTransform& transform)
{
Q_UNUSED(event);
Q_UNUSED(transform);
Q_UNUSED(event)
Q_UNUSED(transform)
return false;
}
bool KItemListController::hoverMoveEvent(QGraphicsSceneHoverEvent* event, const QTransform& transform)
{
Q_UNUSED(transform);
Q_UNUSED(transform)
if (!m_model || !m_view) {
return false;
}
......@@ -1007,8 +1007,8 @@ bool KItemListController::hoverMoveEvent(QGraphicsSceneHoverEvent* event, const
bool KItemListController::hoverLeaveEvent(QGraphicsSceneHoverEvent* event, const QTransform& transform)
{
Q_UNUSED(event);
Q_UNUSED(transform);
Q_UNUSED(event)
Q_UNUSED(transform)
if (!m_model || !m_view) {
return false;
......@@ -1025,15 +1025,15 @@ bool KItemListController::hoverLeaveEvent(QGraphicsSceneHoverEvent* event, const
bool KItemListController::wheelEvent(QGraphicsSceneWheelEvent* event, const QTransform& transform)
{
Q_UNUSED(event);
Q_UNUSED(transform);
Q_UNUSED(event)
Q_UNUSED(transform)
return false;
}
bool KItemListController::resizeEvent(QGraphicsSceneResizeEvent* event, const QTransform& transform)
{
Q_UNUSED(event);
Q_UNUSED(transform);
Q_UNUSED(event)
Q_UNUSED(transform)
return false;
}
......
......@@ -127,9 +127,9 @@ Qt::Orientation KItemListGroupHeader::scrollOrientation() const
void KItemListGroupHeader::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
Q_UNUSED(painter);
Q_UNUSED(option);
Q_UNUSED(widget);
Q_UNUSED(painter)
Q_UNUSED(option)
Q_UNUSED(widget)
if (m_dirtyCache) {
updateCache();
......@@ -141,32 +141,32 @@ void KItemListGroupHeader::paint(QPainter* painter, const QStyleOptionGraphicsIt
void KItemListGroupHeader::roleChanged(const QByteArray& current, const QByteArray& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListGroupHeader::dataChanged(const QVariant& current, const QVariant& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListGroupHeader::styleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListGroupHeader::scrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListGroupHeader::itemIndexChanged(int current, int previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListGroupHeader::resizeEvent(QGraphicsSceneResizeEvent* event)
......
......@@ -843,60 +843,60 @@ KItemListGroupHeaderCreatorBase* KItemListView::defaultGroupHeaderCreator() cons
void KItemListView::initializeItemListWidget(KItemListWidget* item)
{
Q_UNUSED(item);
Q_UNUSED(item)
}
bool KItemListView::itemSizeHintUpdateRequired(const QSet<QByteArray>& changedRoles) const
{
Q_UNUSED(changedRoles);
Q_UNUSED(changedRoles)
return true;
}
void KItemListView::onControllerChanged(KItemListController* current, KItemListController* previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListView::onModelChanged(KItemModelBase* current, KItemModelBase* previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListView::onScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListView::onItemSizeChanged(const QSizeF& current, const QSizeF& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListView::onScrollOffsetChanged(qreal current, qreal previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListView::onVisibleRolesChanged(const QList<QByteArray>& current, const QList<QByteArray>& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListView::onStyleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListView::onSupportsItemExpandingChanged(bool supportsExpanding)
{
Q_UNUSED(supportsExpanding);
Q_UNUSED(supportsExpanding)
}
void KItemListView::onTransactionBegin()
......@@ -1329,8 +1329,8 @@ void KItemListView::slotGroupedSortingChanged(bool current)
void KItemListView::slotSortOrderChanged(Qt::SortOrder current, Qt::SortOrder previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
if (m_grouped) {
updateVisibleGroupHeaders();
doLayout(NoAnimation);
......@@ -1339,8 +1339,8 @@ void KItemListView::slotSortOrderChanged(Qt::SortOrder current, Qt::SortOrder pr
void KItemListView::slotSortRoleChanged(const QByteArray& current, const QByteArray& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
if (m_grouped) {
updateVisibleGroupHeaders();
doLayout(NoAnimation);
......@@ -1349,7 +1349,7 @@ void KItemListView::slotSortRoleChanged(const QByteArray& current, const QByteAr
void KItemListView::slotCurrentChanged(int current, int previous)
{
Q_UNUSED(previous);
Q_UNUSED(previous)
// In SingleSelection mode (e.g., in the Places Panel), the current item is
// always the selected item. It is not necessary to highlight the current item then.
......@@ -1372,7 +1372,7 @@ void KItemListView::slotCurrentChanged(int current, int previous)
void KItemListView::slotSelectionChanged(const KItemSet& current, const KItemSet& previous)
{
Q_UNUSED(previous);
Q_UNUSED(previous)
QHashIterator<int, KItemListWidget*> it(m_visibleItems);
while (it.hasNext()) {
......@@ -1450,9 +1450,9 @@ void KItemListView::slotHeaderColumnWidthChanged(const QByteArray& role,
qreal currentWidth,
qreal previousWidth)
{
Q_UNUSED(role);
Q_UNUSED(currentWidth);
Q_UNUSED(previousWidth);
Q_UNUSED(role)
Q_UNUSED(currentWidth)
Q_UNUSED(previousWidth)
m_headerWidget->setAutomaticColumnResizing(false);
applyColumnWidthsFromHeader();
......
......@@ -421,7 +421,7 @@ int KItemListAccessibleCell::childCount() const
int KItemListAccessibleCell::indexOfChild(const QAccessibleInterface* child) const
{
Q_UNUSED(child);
Q_UNUSED(child)
return -1;
}
......
......@@ -109,7 +109,7 @@ QHash<QByteArray, QVariant> KItemListWidget::data() const
void KItemListWidget::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
Q_UNUSED(option);
Q_UNUSED(option)
if (m_alternateBackground) {
const QColor backgroundColor = m_styleOption.palette.color(QPalette::AlternateBase);
......@@ -394,63 +394,63 @@ QPixmap KItemListWidget::createDragPixmap(const QStyleOptionGraphicsItem* option
void KItemListWidget::dataChanged(const QHash<QByteArray, QVariant>& current,
const QSet<QByteArray>& roles)
{
Q_UNUSED(current);
Q_UNUSED(roles);
Q_UNUSED(current)
Q_UNUSED(roles)
}
void KItemListWidget::visibleRolesChanged(const QList<QByteArray>& current,
const QList<QByteArray>& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListWidget::columnWidthChanged(const QByteArray& role,
qreal current,
qreal previous)
{
Q_UNUSED(role);
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(role)
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListWidget::styleOptionChanged(const KItemListStyleOption& current,
const KItemListStyleOption& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListWidget::currentChanged(bool current)
{
Q_UNUSED(current);
Q_UNUSED(current)
}
void KItemListWidget::selectedChanged(bool selected)
{
Q_UNUSED(selected);
Q_UNUSED(selected)
}
void KItemListWidget::hoveredChanged(bool hovered)
{
Q_UNUSED(hovered);
Q_UNUSED(hovered)
}
void KItemListWidget::alternateBackgroundChanged(bool enabled)
{
Q_UNUSED(enabled);
Q_UNUSED(enabled)
}
void KItemListWidget::siblingsInformationChanged(const QBitArray& current, const QBitArray& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListWidget::editedRoleChanged(const QByteArray& current, const QByteArray& previous)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(current)
Q_UNUSED(previous)
}
void KItemListWidget::resizeEvent(QGraphicsSceneResizeEvent* event)
......
......@@ -44,8 +44,8 @@ KItemModelBase::~KItemModelBase()
bool KItemModelBase::setData(int index, const QHash<QByteArray, QVariant> &values)
{
Q_UNUSED(index);
Q_UNUSED(values);
Q_UNUSED(index)
Q_UNUSED(values)
return false;
}
......@@ -100,45 +100,45 @@ QList<QPair<int, QVariant> > KItemModelBase::groups() const
bool KItemModelBase::setExpanded(int index, bool expanded)
{
Q_UNUSED(index);
Q_UNUSED(expanded);
Q_UNUSED(index)
Q_UNUSED(expanded)
return false;
}
bool KItemModelBase::isExpanded(int index) const
{
Q_UNUSED(index);
Q_UNUSED(index)
return false;
}
bool KItemModelBase::isExpandable(int index) const
{
Q_UNUSED(index);
Q_UNUSED(index)
return false;
}
int KItemModelBase::expandedParentsCount(int index) const
{
Q_UNUSED(index);
Q_UNUSED(index)
return 0;
}
QMimeData* KItemModelBase::createMimeData(const KItemSet& indexes) const
{
Q_UNUSED(indexes);
Q_UNUSED(indexes)
return nullptr;
}
int KItemModelBase::indexForKeyboardSearch(const QString& text, int startFromIndex) const
{
Q_UNUSED(text);
Q_UNUSED(startFromIndex);
Q_UNUSED(text)
Q_UNUSED(startFromIndex)
return -1;
}
bool KItemModelBase::supportsDropping(int index) const
{
Q_UNUSED(index);
Q_UNUSED(index)
return false;
}
......@@ -149,20 +149,20 @@ QString KItemModelBase::blacklistItemDropEventMimeType() const
void KItemModelBase::onGroupedSortingChanged(bool current)
{
Q_UNUSED(current);
Q_UNUSED(current)
}
void KItemModelBase::onSortRoleChanged(const QByteArray& current, const QByteArray& previous, bool resortItems)
{
Q_UNUSED(current);
Q_UNUSED(previous);
Q_UNUSED(resortItems);
Q_UNUSED(current)
Q_UNUSED(previous)
Q_UNUSED(resortItems)
}
void KItemModelBase::onSortOrderChanged(Qt::SortOrder current, Qt::