Fix warning: "Unused non-trivial variable"

[-Wclazy-unused-non-trivial-variable]

Change-Id: Ia99c3de31fd92205f25624ab60e60370c1aa4538
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2019-01-16 15:36:20 +01:00
parent c82d2cbd54
commit d9c05d3d20
6 changed files with 0 additions and 9 deletions

View File

@@ -162,7 +162,6 @@ void SftpTransfer::doStart()
QFileInfo fi(f.sourceFile);
if (fi.isSymLink()) {
link = true;
const QString target = fi.dir().relativeFilePath(fi.symLinkTarget()); // see QTBUG-5817.
d->batchFile.write("-rm " + QtcProcess::quoteArgUnix(f.targetFile).toLocal8Bit()
+ '\n');
}

View File

@@ -291,7 +291,6 @@ void BreakpointParameters::updateFromGdbOutput(const GdbMi &bkpt)
QString originalLocation;
QString file;
QString fullName;
QString internalId;
enabled = true;
pending = false;

View File

@@ -1847,7 +1847,6 @@ void QmlEnginePrivate::messageReceived(const QByteArray &data)
const QVariantList v8BreakpointIdList = breakData.value("breakpoints").toList();
for (const QVariant &breakpointId : v8BreakpointIdList) {
const QString x = breakpointId.toString();
const QString responseId = QString::number(breakpointId.toInt());
Breakpoint bp = engine->breakHandler()->findBreakpointByResponseId(responseId);
QTC_ASSERT(bp, continue);

View File

@@ -231,7 +231,6 @@ QMap<QString, QUrl> HelpManager::linksForKeyword(const QString &key)
QMap<QString, QUrl> HelpManager::linksForIdentifier(const QString &id)
{
QMap<QString, QUrl> empty;
QTC_ASSERT(!d->m_needsSetup, return {});
return d->m_helpEngine->linksForIdentifier(id);
}

View File

@@ -144,9 +144,6 @@ LanguageClientSettingsPageWidget::LanguageClientSettingsPageWidget(LanguageClien
m_view->setSelectionBehavior(QAbstractItemView::SelectItems);
connect(m_view->selectionModel(), &QItemSelectionModel::currentChanged,
this, &LanguageClientSettingsPageWidget::currentChanged);
auto mimeTypes = Utils::transform(Utils::allMimeTypes(), [](const Utils::MimeType &mimeType){
return mimeType.name();
});
auto buttonLayout = new QVBoxLayout();
auto addButton = new QPushButton(LanguageClientSettingsPage::tr("&Add"));
connect(addButton, &QPushButton::pressed, this, &LanguageClientSettingsPageWidget::addItem);

View File

@@ -49,7 +49,6 @@ void NimSuggest::setProjectFile(const QString &file)
if (m_projectFile == file)
return;
auto old = m_projectFile;
m_projectFile = file;
emit projectFileChanged(file);
@@ -66,7 +65,6 @@ void NimSuggest::setExecutablePath(const QString &path)
if (m_executablePath == path)
return;
auto old = m_executablePath;
m_executablePath = path;
emit executablePathChanged(path);