Semi colon not needed after Q_UNUSED
This commit is contained in:
committed by
craig.p.drummond
parent
cbcb72b496
commit
3538ff6578
@@ -75,7 +75,7 @@ const QDBusArgument& operator>> (const QDBusArgument &arg, QImage &image)
|
||||
{
|
||||
// This is needed to link but shouldn't be called.
|
||||
Q_ASSERT(0);
|
||||
Q_UNUSED(image);
|
||||
Q_UNUSED(image)
|
||||
return arg;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
EditorDelegate(QObject *parent=0) : BasicItemDelegate(parent) { }
|
||||
|
||||
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const {
|
||||
Q_UNUSED(option);
|
||||
Q_UNUSED(option)
|
||||
if (COL_TRACK==index.column()) {
|
||||
QSpinBox *editor = new QSpinBox(parent);
|
||||
editor->setMinimum(0);
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
}
|
||||
|
||||
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const {
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(index)
|
||||
editor->setGeometry(option.rect);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -182,7 +182,7 @@ void AudioCdDevice::connectService(bool useCddb)
|
||||
mb=0;
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(useCddb);
|
||||
Q_UNUSED(useCddb)
|
||||
#endif
|
||||
|
||||
#ifdef CDDB_FOUND
|
||||
|
||||
@@ -71,7 +71,7 @@ void TranscodingJob::stop()
|
||||
|
||||
void TranscodingJob::finished(int exitCode, QProcess::ExitStatus exitStatus)
|
||||
{
|
||||
Q_UNUSED(exitStatus);
|
||||
Q_UNUSED(exitStatus)
|
||||
if (!process) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -472,7 +472,7 @@ void ModelTest::data()
|
||||
*/
|
||||
void ModelTest::rowsAboutToBeInserted ( const QModelIndex &parent, int start, int end )
|
||||
{
|
||||
// Q_UNUSED(end);
|
||||
// Q_UNUSED(end)
|
||||
// qDebug() << "rowsAboutToBeInserted" << "start=" << start << "end=" << end << "parent=" << model->data ( parent ).toString()
|
||||
// << "current count of parent=" << model->rowCount ( parent ); // << "display of last=" << model->data( model->index(start-1, 0, parent) );
|
||||
// qDebug() << model->index(start-1, 0, parent) << model->data( model->index(start-1, 0, parent) );
|
||||
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
PlaylistsModel(QObject *parent = 0);
|
||||
~PlaylistsModel();
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const { Q_UNUSED(parent); return COL_COUNT; }
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const { Q_UNUSED(parent) return COL_COUNT; }
|
||||
bool canFetchMore(const QModelIndex &index) const;
|
||||
void fetchMore(const QModelIndex &index);
|
||||
bool hasChildren(const QModelIndex &parent = QModelIndex()) const;
|
||||
|
||||
@@ -133,7 +133,7 @@ float * Mpg123Input::buffer() const
|
||||
|
||||
bool Mpg123Input::setChannelMap(int *st) const
|
||||
{
|
||||
Q_UNUSED(st);
|
||||
Q_UNUSED(st)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ QList<QAction *> ActionCollection::actions() const {
|
||||
|
||||
Action *ActionCollection::addAction(const QString &name, Action *action) {
|
||||
QAction *act = addAction(name, static_cast<QAction *>(action));
|
||||
Q_UNUSED(act);
|
||||
Q_UNUSED(act)
|
||||
Q_ASSERT(act == action);
|
||||
return action;
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@ void Utils::setFilePerms(const QString &file, const char *groupName)
|
||||
::chmod(fn.constData(), 0==gid ? 0644 : 0664);
|
||||
if (0!=gid) {
|
||||
int rv=::chown(fn.constData(), geteuid(), gid);
|
||||
Q_UNUSED(rv);
|
||||
Q_UNUSED(rv)
|
||||
}
|
||||
// Reset umask
|
||||
::umask(oldMask);
|
||||
@@ -254,8 +254,8 @@ void Utils::setFilePerms(const QString &file, const char *groupName)
|
||||
#else
|
||||
void Utils::setFilePerms(const QString &file, const char *groupName)
|
||||
{
|
||||
Q_UNUSED(file);
|
||||
Q_UNUSED(groupName);
|
||||
Q_UNUSED(file)
|
||||
Q_UNUSED(groupName)
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -266,8 +266,8 @@ void Utils::setFilePerms(const QString &file, const char *groupName)
|
||||
bool Utils::createWorldReadableDir(const QString &dir, const QString &base, const char *groupName)
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
Q_UNUSED(base);
|
||||
Q_UNUSED(groupName);
|
||||
Q_UNUSED(base)
|
||||
Q_UNUSED(groupName)
|
||||
return makeDir(dir, 0775);
|
||||
#else
|
||||
//
|
||||
@@ -283,7 +283,7 @@ bool Utils::createWorldReadableDir(const QString &dir, const QString &base, cons
|
||||
foreach (const QString &p, parts) {
|
||||
d+=constDirSep+p;
|
||||
int rv=::chown(QFile::encodeName(d).constData(), geteuid(), gid);
|
||||
Q_UNUSED(rv);
|
||||
Q_UNUSED(rv)
|
||||
}
|
||||
}
|
||||
// Reset umask
|
||||
|
||||
@@ -260,7 +260,7 @@ bool WindowManager::mousePressEvent(QObject *object, QEvent *event)
|
||||
|
||||
bool WindowManager::mouseMoveEvent(QObject *object, QEvent *event)
|
||||
{
|
||||
Q_UNUSED(object);
|
||||
Q_UNUSED(object)
|
||||
|
||||
// stop timer
|
||||
if (_dragTimer.isActive()){
|
||||
@@ -299,8 +299,8 @@ bool WindowManager::mouseMoveEvent(QObject *object, QEvent *event)
|
||||
|
||||
bool WindowManager::mouseReleaseEvent(QObject *object, QEvent *event)
|
||||
{
|
||||
Q_UNUSED(object);
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(object)
|
||||
Q_UNUSED(event)
|
||||
resetDrag();
|
||||
return false;
|
||||
}
|
||||
@@ -662,7 +662,7 @@ bool WindowManager::AppEventFilter::eventFilter(QObject *object, QEvent *event)
|
||||
|
||||
bool WindowManager::AppEventFilter::appMouseEvent(QObject *object, QEvent *event)
|
||||
{
|
||||
Q_UNUSED(object);
|
||||
Q_UNUSED(object)
|
||||
|
||||
// store target window (see later)
|
||||
QWidget *window(_parent->_target.data()->window());
|
||||
|
||||
@@ -499,7 +499,7 @@ void AutohidingSplitter::setWidgetForHiding()
|
||||
|
||||
void AutohidingSplitter::updateAfterSplitterMoved(int pos, int index)
|
||||
{
|
||||
Q_UNUSED(pos);
|
||||
Q_UNUSED(pos)
|
||||
if (!autoHideEnabled || index<=0 || index>count()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -38,5 +38,5 @@ SizeWidget::SizeWidget(QWidget *parent)
|
||||
|
||||
void SizeWidget::paintEvent(QPaintEvent *e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user