Remove unused non-trivial variables. [-Wclazy-unused-non-trivial-variable] Thanks Clazy!

This commit is contained in:
Mateusz Skowroński
2019-01-30 20:07:40 +01:00
committed by wmayer
parent 317bcd59c9
commit 082647b2d1
5 changed files with 0 additions and 5 deletions

View File

@@ -428,7 +428,6 @@ void WorkbenchComboBox::actionEvent ( QActionEvent* e )
int index = this->findData(data);
// added a workbench
if (index < 0 && action->isVisible()) {
QString text = action->text();
QIcon icon = action->icon();
if (icon.isNull())
this->addItem(action->text(), data);

View File

@@ -369,7 +369,6 @@ void DlgCustomKeyboardImp::on_editShortcut_textChanged(const QString& sc)
CommandManager & cCmdMgr = Application::Instance->commandManager();
std::vector<Command*> cmds = cCmdMgr.getAllCommands();
for (std::vector<Command*>::iterator it = cmds.begin(); it != cmds.end(); ++it) {
QList<QAction*> acts;
if ((*it)->getAction()) {
// A command may have several QAction's. So, check all of them if one of them matches (See bug #0002160)
QList<QAction*> acts = (*it)->getAction()->findChildren<QAction*>();

View File

@@ -471,7 +471,6 @@ void ParameterGroup::onImportFromFile()
QString::null, QString::fromLatin1("XML (*.FCParam)"));
if ( !file.isEmpty() )
{
QFileInfo fi(file);
QTreeWidgetItem* item = currentItem();
if (isItemSelected(item))
{

View File

@@ -517,7 +517,6 @@ void DocumentRecovery::on_buttonCleanup_clicked()
tmp.setNameFilters(QStringList() << QString::fromLatin1("*.lock"));
tmp.setFilter(QDir::Files);
QList<QFileInfo> restoreDocFiles;
QString exeName = QString::fromLatin1(App::GetApplication().getExecutableName());
QList<QFileInfo> locks = tmp.entryInfoList();
for (QList<QFileInfo>::iterator it = locks.begin(); it != locks.end(); ++it) {

View File

@@ -281,7 +281,6 @@ void BrowserView::onLinkClicked (const QUrl & url)
// path handling
QString path = url.path();
QFileInfo fi(path);
QString ext = fi.completeSuffix();
QUrl exturl(url);
// query