Commit f98e3da7 authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

-pedantic: Q_UNUSED(); -> Q_UNUSED()

svn path=/trunk/KDE/kdeutils/ark/; revision=1055932
parent 3d215fd2
......@@ -188,7 +188,7 @@ void BatchExtract::slotResult(KJob *job)
void BatchExtract::forwardProgress(KJob *job, unsigned long percent)
{
Q_UNUSED(job);
Q_UNUSED(job)
int jobPart = 100 / m_initialJobCount;
setPercent(jobPart *(m_initialJobCount - subjobs().size()) + percent / m_initialJobCount);
}
......
......@@ -353,8 +353,8 @@ void CliInterface::started()
void CliInterface::processFinished(int exitCode, QProcess::ExitStatus exitStatus)
{
Q_UNUSED(exitCode);
Q_UNUSED(exitStatus);
Q_UNUSED(exitCode)
Q_UNUSED(exitStatus)
kDebug();
......
......@@ -66,7 +66,7 @@ void Job::start()
void Job::onError(const QString & message, const QString & details)
{
Q_UNUSED(details);
Q_UNUSED(details)
setError(1);
setErrorText(message);
......
......@@ -510,10 +510,10 @@ QMimeData * ArchiveModel::mimeData(const QModelIndexList & indexes) const
bool ArchiveModel::dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent)
{
Q_UNUSED(action);
Q_UNUSED(row);
Q_UNUSED(column);
Q_UNUSED(parent);
Q_UNUSED(action)
Q_UNUSED(row)
Q_UNUSED(column)
Q_UNUSED(parent)
if (!data->hasUrls())
return false;
......
......@@ -183,8 +183,8 @@ void ArkViewer::slotOpenUrlRequestDelayed(const KUrl& url, const KParts::OpenUrl
{
kDebug() << "Opening URL: " << url;
Q_UNUSED(arguments);
Q_UNUSED(browserArguments);
Q_UNUSED(arguments)
Q_UNUSED(browserArguments)
KRun *runner = new KRun(url, 0, 0, false);
runner->setRunExecutables(false);
......
......@@ -45,25 +45,25 @@ KJob* JobTracker::currentJob() const
void JobTracker::description(KJob *job, const QString &title, const QPair< QString, QString > &f1, const QPair< QString, QString > &f2)
{
Q_UNUSED(job);
Q_UNUSED(f1);
Q_UNUSED(f2);
Q_UNUSED(job)
Q_UNUSED(f1)
Q_UNUSED(f2)
m_ui->descriptionLabel->setText(QString("<b>%1</b>").arg(title));
m_ui->descriptionLabel->show();
}
void JobTracker::infoMessage(KJob *job, const QString &plain, const QString &rich)
{
Q_UNUSED(job);
Q_UNUSED(rich);
Q_UNUSED(job)
Q_UNUSED(rich)
m_ui->informationLabel->setText(plain);
m_ui->informationLabel->show();
}
void JobTracker::warning(KJob *job, const QString &plain, const QString &rich)
{
Q_UNUSED(job);
Q_UNUSED(rich);
Q_UNUSED(job)
Q_UNUSED(rich)
m_ui->informationLabel->setText(plain);
}
......@@ -78,7 +78,7 @@ void JobTracker::registerJob(KJob *job)
void JobTracker::percent(KJob *job, unsigned long percent)
{
Q_UNUSED(job);
Q_UNUSED(job)
m_ui->progressBar->setMaximum(100);
m_ui->progressBar->setMinimum(0);
m_ui->progressBar->setValue(percent);
......
......@@ -78,7 +78,7 @@ Part::Part(QWidget *parentWidget, QObject *parent, const QStringList& args)
m_busy(false),
m_jobTracker(0)
{
Q_UNUSED(args);
Q_UNUSED(args)
setComponentData(Factory::componentData());
m_splitter = new QSplitter(Qt::Horizontal, parentWidget);
......
......@@ -113,13 +113,13 @@ bool BKInterface::browse(BkFileBase* base, const QString& prefix)
bool BKInterface::addFiles(const QStringList & files, const CompressionOptions& options)
{
Q_UNUSED(files);
Q_UNUSED(files)
return false;
}
bool BKInterface::deleteFiles(const QList<QVariant> & files)
{
Q_UNUSED(files);
Q_UNUSED(files)
return false;
}
......
......@@ -46,8 +46,8 @@ LibSingleFileInterface::~LibSingleFileInterface()
bool LibSingleFileInterface::copyFiles(const QList<QVariant> & files, const QString & destinationDirectory, Kerfuffle::ExtractionOptions options)
{
Q_UNUSED(files);
Q_UNUSED(options);
Q_UNUSED(files)
Q_UNUSED(options)
QString outputFileName = destinationDirectory;
if (!destinationDirectory.endsWith('/'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment