Remove unused non-trivial variables. [-Wclazy-unused-non-trivial-variable] Thanks Clazy!
This commit is contained in:
committed by
wmayer
parent
317bcd59c9
commit
082647b2d1
@@ -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);
|
||||
|
||||
@@ -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*>();
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user