┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2019-11-09 22:06:39 +0100
committerElvis Angelaccio <[email protected]>2019-11-09 22:09:16 +0100
commit16a3aea6a629a91aab937be5c111b64b3ed6cf86 (patch)
tree3bd91330126e2fc5f053fc75bd8c9436d35bd214 /src/panels
parent3512293b9840dd00c204d9b72ddd28ad26fff9ff (diff)
Remove unnecessary semicolons after Q_UNUSED
GIT_SILENT
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/places/placesitem.cpp6
-rw-r--r--src/panels/places/placesitemlistgroupheader.cpp4
-rw-r--r--src/panels/places/placesitemmodel.cpp14
3 files changed, 12 insertions, 12 deletions
diff --git a/src/panels/places/placesitem.cpp b/src/panels/places/placesitem.cpp
index 3d3645ea2..b06bac9a6 100644
--- a/src/panels/places/placesitem.cpp
+++ b/src/panels/places/placesitem.cpp
@@ -175,8 +175,8 @@ void PlacesItem::onDataValueChanged(const QByteArray& role,
const QVariant& current,
const QVariant& previous)
{
- Q_UNUSED(current);
- Q_UNUSED(previous);
+ Q_UNUSED(current)
+ Q_UNUSED(previous)
if (!m_bookmark.isNull()) {
updateBookmarkForRole(role);
@@ -186,7 +186,7 @@ void PlacesItem::onDataValueChanged(const QByteArray& role,
void PlacesItem::onDataChanged(const QHash<QByteArray, QVariant>& current,
const QHash<QByteArray, QVariant>& previous)
{
- Q_UNUSED(previous);
+ Q_UNUSED(previous)
if (!m_bookmark.isNull()) {
QHashIterator<QByteArray, QVariant> it(current);
diff --git a/src/panels/places/placesitemlistgroupheader.cpp b/src/panels/places/placesitemlistgroupheader.cpp
index e17fd4d66..884859d5b 100644
--- a/src/panels/places/placesitemlistgroupheader.cpp
+++ b/src/panels/places/placesitemlistgroupheader.cpp
@@ -33,8 +33,8 @@ PlacesItemListGroupHeader::~PlacesItemListGroupHeader()
void PlacesItemListGroupHeader::paintSeparator(QPainter* painter, const QColor& color)
{
- Q_UNUSED(painter);
- Q_UNUSED(color);
+ Q_UNUSED(painter)
+ Q_UNUSED(color)
}
QPalette::ColorRole PlacesItemListGroupHeader::normalTextColorRole() const
diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp
index 4a91ec6d8..9dbfe7f91 100644
--- a/src/panels/places/placesitemmodel.cpp
+++ b/src/panels/places/placesitemmodel.cpp
@@ -496,7 +496,7 @@ void PlacesItemModel::slotStorageSetupDone(Solid::ErrorType error,
const QVariant& errorData,
const QString& udi)
{
- Q_UNUSED(udi);
+ Q_UNUSED(udi)
const int index = m_storageSetupInProgress.take(sender());
const PlacesItem* item = placesItem(index);
@@ -540,8 +540,8 @@ void PlacesItemModel::onSourceModelRowsAboutToBeRemoved(const QModelIndex &paren
void PlacesItemModel::onSourceModelRowsAboutToBeMoved(const QModelIndex &parent, int start, int end, const QModelIndex &destination, int row)
{
- Q_UNUSED(destination);
- Q_UNUSED(row);
+ Q_UNUSED(destination)
+ Q_UNUSED(row)
for(int r = start; r <= end; r++) {
const QModelIndex sourceIndex = m_sourceModel->index(r, 0, parent);
@@ -552,8 +552,8 @@ void PlacesItemModel::onSourceModelRowsAboutToBeMoved(const QModelIndex &parent,
void PlacesItemModel::onSourceModelRowsMoved(const QModelIndex &parent, int start, int end, const QModelIndex &destination, int row)
{
- Q_UNUSED(destination);
- Q_UNUSED(parent);
+ Q_UNUSED(destination)
+ Q_UNUSED(parent)
const int blockSize = (end - start) + 1;
@@ -568,7 +568,7 @@ void PlacesItemModel::onSourceModelRowsMoved(const QModelIndex &parent, int star
void PlacesItemModel::onSourceModelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles)
{
- Q_UNUSED(roles);
+ Q_UNUSED(roles)
for (int r = topLeft.row(); r <= bottomRight.row(); r++) {
const QModelIndex sourceIndex = m_sourceModel->index(r, 0);
@@ -760,7 +760,7 @@ int PlacesItemModel::mapFromSource(const QModelIndex &index) const
bool PlacesItemModel::isDir(int index) const
{
- Q_UNUSED(index);
+ Q_UNUSED(index)
return true;
}