forked from qt-creator/qt-creator
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:
@@ -162,7 +162,6 @@ void SftpTransfer::doStart()
|
|||||||
QFileInfo fi(f.sourceFile);
|
QFileInfo fi(f.sourceFile);
|
||||||
if (fi.isSymLink()) {
|
if (fi.isSymLink()) {
|
||||||
link = true;
|
link = true;
|
||||||
const QString target = fi.dir().relativeFilePath(fi.symLinkTarget()); // see QTBUG-5817.
|
|
||||||
d->batchFile.write("-rm " + QtcProcess::quoteArgUnix(f.targetFile).toLocal8Bit()
|
d->batchFile.write("-rm " + QtcProcess::quoteArgUnix(f.targetFile).toLocal8Bit()
|
||||||
+ '\n');
|
+ '\n');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -291,7 +291,6 @@ void BreakpointParameters::updateFromGdbOutput(const GdbMi &bkpt)
|
|||||||
QString originalLocation;
|
QString originalLocation;
|
||||||
QString file;
|
QString file;
|
||||||
QString fullName;
|
QString fullName;
|
||||||
QString internalId;
|
|
||||||
|
|
||||||
enabled = true;
|
enabled = true;
|
||||||
pending = false;
|
pending = false;
|
||||||
|
|||||||
@@ -1847,7 +1847,6 @@ void QmlEnginePrivate::messageReceived(const QByteArray &data)
|
|||||||
|
|
||||||
const QVariantList v8BreakpointIdList = breakData.value("breakpoints").toList();
|
const QVariantList v8BreakpointIdList = breakData.value("breakpoints").toList();
|
||||||
for (const QVariant &breakpointId : v8BreakpointIdList) {
|
for (const QVariant &breakpointId : v8BreakpointIdList) {
|
||||||
const QString x = breakpointId.toString();
|
|
||||||
const QString responseId = QString::number(breakpointId.toInt());
|
const QString responseId = QString::number(breakpointId.toInt());
|
||||||
Breakpoint bp = engine->breakHandler()->findBreakpointByResponseId(responseId);
|
Breakpoint bp = engine->breakHandler()->findBreakpointByResponseId(responseId);
|
||||||
QTC_ASSERT(bp, continue);
|
QTC_ASSERT(bp, continue);
|
||||||
|
|||||||
@@ -231,7 +231,6 @@ QMap<QString, QUrl> HelpManager::linksForKeyword(const QString &key)
|
|||||||
|
|
||||||
QMap<QString, QUrl> HelpManager::linksForIdentifier(const QString &id)
|
QMap<QString, QUrl> HelpManager::linksForIdentifier(const QString &id)
|
||||||
{
|
{
|
||||||
QMap<QString, QUrl> empty;
|
|
||||||
QTC_ASSERT(!d->m_needsSetup, return {});
|
QTC_ASSERT(!d->m_needsSetup, return {});
|
||||||
return d->m_helpEngine->linksForIdentifier(id);
|
return d->m_helpEngine->linksForIdentifier(id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,9 +144,6 @@ LanguageClientSettingsPageWidget::LanguageClientSettingsPageWidget(LanguageClien
|
|||||||
m_view->setSelectionBehavior(QAbstractItemView::SelectItems);
|
m_view->setSelectionBehavior(QAbstractItemView::SelectItems);
|
||||||
connect(m_view->selectionModel(), &QItemSelectionModel::currentChanged,
|
connect(m_view->selectionModel(), &QItemSelectionModel::currentChanged,
|
||||||
this, &LanguageClientSettingsPageWidget::currentChanged);
|
this, &LanguageClientSettingsPageWidget::currentChanged);
|
||||||
auto mimeTypes = Utils::transform(Utils::allMimeTypes(), [](const Utils::MimeType &mimeType){
|
|
||||||
return mimeType.name();
|
|
||||||
});
|
|
||||||
auto buttonLayout = new QVBoxLayout();
|
auto buttonLayout = new QVBoxLayout();
|
||||||
auto addButton = new QPushButton(LanguageClientSettingsPage::tr("&Add"));
|
auto addButton = new QPushButton(LanguageClientSettingsPage::tr("&Add"));
|
||||||
connect(addButton, &QPushButton::pressed, this, &LanguageClientSettingsPageWidget::addItem);
|
connect(addButton, &QPushButton::pressed, this, &LanguageClientSettingsPageWidget::addItem);
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ void NimSuggest::setProjectFile(const QString &file)
|
|||||||
if (m_projectFile == file)
|
if (m_projectFile == file)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto old = m_projectFile;
|
|
||||||
m_projectFile = file;
|
m_projectFile = file;
|
||||||
emit projectFileChanged(file);
|
emit projectFileChanged(file);
|
||||||
|
|
||||||
@@ -66,7 +65,6 @@ void NimSuggest::setExecutablePath(const QString &path)
|
|||||||
if (m_executablePath == path)
|
if (m_executablePath == path)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto old = m_executablePath;
|
|
||||||
m_executablePath = path;
|
m_executablePath = path;
|
||||||
emit executablePathChanged(path);
|
emit executablePathChanged(path);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user