summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-07-13 17:35:17 +0200
committerAlessandro Portale <aportale@trolltech.com>2009-07-13 17:35:17 +0200
commitd3f9757916d5ba10eac63ef6c42611924999c3b0 (patch)
treed3da900526161354a6c1ea76f9e66247897977d3 /src
parentf9ed6f18bce732a0b440b40cb1cb930d779660ff (diff)
downloadqt-creator-d3f9757916d5ba10eac63ef6c42611924999c3b0.tar.gz
Removing some unused semicolons after Q_UNUSED
There were both variants, with and without extra semicolon.
Diffstat (limited to 'src')
-rw-r--r--src/libs/extensionsystem/patchedpluginloader.cpp6
-rw-r--r--src/libs/extensionsystem/test/manual/pluginview/plugins/plugin2/plugin2.cpp2
-rw-r--r--src/libs/qtconcurrent/multitask.h8
-rw-r--r--src/plugins/bineditor/bineditorplugin.cpp4
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeproject.cpp8
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp22
-rw-r--r--src/plugins/coreplugin/coreplugin.cpp2
-rw-r--r--src/plugins/coreplugin/dialogs/shortcutsettings.cpp2
-rw-r--r--src/plugins/coreplugin/editormanager/openeditorsmodel.cpp4
-rw-r--r--src/plugins/coreplugin/fancytabwidget.cpp4
-rw-r--r--src/plugins/coreplugin/mainwindow.cpp4
-rw-r--r--src/plugins/coreplugin/styleanimator.cpp4
-rw-r--r--src/plugins/cpaster/cpasterplugin.cpp4
-rw-r--r--src/plugins/cpptools/cppcurrentdocumentfilter.cpp2
-rw-r--r--src/plugins/cpptools/cppquickopenfilter.cpp2
-rw-r--r--src/plugins/cpptools/cpptoolsplugin.cpp4
-rw-r--r--src/plugins/debugger/debuggeroutputwindow.cpp2
-rw-r--r--src/plugins/debugger/debuggerrunner.cpp2
-rw-r--r--src/plugins/debugger/debuggertooltip.cpp2
-rw-r--r--src/plugins/debugger/disassemblerhandler.cpp4
-rw-r--r--src/plugins/debugger/gdb/gdbengine.cpp10
-rw-r--r--src/plugins/debugger/script/scriptengine.cpp56
-rw-r--r--src/plugins/debugger/tcf/tcfengine.cpp20
-rw-r--r--src/plugins/debugger/watchhandler.cpp6
-rw-r--r--src/plugins/debugger/watchwindow.cpp2
-rw-r--r--src/plugins/designer/formeditorplugin.cpp4
-rw-r--r--src/plugins/duieditor/parser/qmljsprettypretty.cpp200
-rw-r--r--src/plugins/find/currentdocumentfind.cpp2
-rw-r--r--src/plugins/find/ifindfilter.h4
-rw-r--r--src/plugins/find/searchresulttreemodel.cpp8
-rw-r--r--src/plugins/find/searchresultwindow.cpp2
-rw-r--r--src/plugins/genericprojectmanager/genericprojectnodes.cpp18
-rw-r--r--src/plugins/git/gitplugin.cpp4
-rw-r--r--src/plugins/help/centralwidget.cpp6
-rw-r--r--src/plugins/help/helpfindsupport.cpp2
-rw-r--r--src/plugins/help/helpindexfilter.cpp2
-rw-r--r--src/plugins/help/helpplugin.cpp4
-rw-r--r--src/plugins/perforce/perforceplugin.cpp4
-rw-r--r--src/plugins/projectexplorer/allprojectsfilter.cpp2
-rw-r--r--src/plugins/projectexplorer/applicationrunconfiguration.cpp2
-rw-r--r--src/plugins/projectexplorer/buildparserfactory.cpp4
-rw-r--r--src/plugins/projectexplorer/currentprojectfilter.cpp2
-rw-r--r--src/plugins/projectexplorer/customexecutablerunconfiguration.cpp4
-rw-r--r--src/plugins/projectexplorer/environmenteditmodel.cpp6
-rw-r--r--src/plugins/projectexplorer/msvcparser.cpp2
-rw-r--r--src/plugins/projectexplorer/processstep.cpp4
-rw-r--r--src/plugins/projectexplorer/projectexplorer.cpp6
-rw-r--r--src/plugins/projectexplorer/projectmodels.cpp6
-rw-r--r--src/plugins/projectexplorer/sessiondialog.cpp2
-rw-r--r--src/plugins/projectexplorer/taskwindow.cpp4
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectnodes.cpp16
-rw-r--r--src/plugins/qt4projectmanager/deployhelper.cpp2
-rw-r--r--src/plugins/qt4projectmanager/embeddedpropertiespage.cpp2
-rw-r--r--src/plugins/qt4projectmanager/makestep.cpp4
-rw-r--r--src/plugins/qt4projectmanager/profilereader.cpp4
-rw-r--r--src/plugins/qt4projectmanager/qmakestep.cpp4
-rw-r--r--src/plugins/qt4projectmanager/qt4nodes.cpp10
-rw-r--r--src/plugins/qt4projectmanager/qt4project.cpp2
-rw-r--r--src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp2
-rw-r--r--src/plugins/qt4projectmanager/wizards/librarywizard.cpp2
-rw-r--r--src/plugins/qtestlib/qtestlibplugin.cpp4
-rw-r--r--src/plugins/quickopen/filesystemfilter.cpp2
-rw-r--r--src/plugins/quickopen/iquickopenfilter.cpp2
-rw-r--r--src/plugins/quickopen/opendocumentsfilter.cpp2
-rw-r--r--src/plugins/quickopen/quickopenfiltersfilter.cpp2
-rw-r--r--src/plugins/regexp/regexpplugin.cpp2
-rw-r--r--src/plugins/resourceeditor/resourceeditorplugin.cpp2
-rw-r--r--src/plugins/resourceeditor/resourcewizard.cpp2
-rw-r--r--src/plugins/snippets/snippetsplugin.cpp2
-rw-r--r--src/plugins/snippets/snippetswindow.cpp2
-rw-r--r--src/plugins/subversion/subversionplugin.cpp2
-rw-r--r--src/plugins/texteditor/basetexteditor.cpp6
-rw-r--r--src/plugins/texteditor/completionwidget.cpp2
-rw-r--r--src/plugins/texteditor/texteditorplugin.cpp2
-rw-r--r--src/plugins/vcsbase/vcsbaseplugin.cpp4
-rw-r--r--src/shared/cplusplus/CheckDeclaration.cpp2
-rw-r--r--src/shared/cplusplus/CheckExpression.cpp8
-rw-r--r--src/shared/proparser/profileevaluator.cpp2
-rw-r--r--src/shared/qrceditor/resourcefile.cpp2
-rw-r--r--src/shared/qrceditor/resourceview.cpp4
-rw-r--r--src/tools/qdebugger/mainwindow.cpp2
81 files changed, 298 insertions, 298 deletions
diff --git a/src/libs/extensionsystem/patchedpluginloader.cpp b/src/libs/extensionsystem/patchedpluginloader.cpp
index 3d8e904dd5..7898c91d73 100644
--- a/src/libs/extensionsystem/patchedpluginloader.cpp
+++ b/src/libs/extensionsystem/patchedpluginloader.cpp
@@ -422,7 +422,7 @@ PatchedLibraryPrivate::~PatchedLibraryPrivate()
if (map) {
PatchedLibraryPrivate *that = map->take(fileName);
Q_ASSERT(this == that);
- Q_UNUSED(that);
+ Q_UNUSED(that)
}
}
@@ -720,7 +720,7 @@ bool PatchedLibraryPrivate::isPlugin(QSettings *settings)
return pluginState == IsAPlugin;
#else
- Q_UNUSED(settings);
+ Q_UNUSED(settings)
return pluginState == MightBeAPlugin;
#endif
}
@@ -813,7 +813,7 @@ void PatchedPluginLoader::setFileName(const QString &fileName)
qWarning("Cannot load %s into a statically linked Qt library.",
(const char*)QFile::encodeName(fileName));
}
- Q_UNUSED(fileName);
+ Q_UNUSED(fileName)
#endif
}
diff --git a/src/libs/extensionsystem/test/manual/pluginview/plugins/plugin2/plugin2.cpp b/src/libs/extensionsystem/test/manual/pluginview/plugins/plugin2/plugin2.cpp
index 06192e8f27..688cb7b760 100644
--- a/src/libs/extensionsystem/test/manual/pluginview/plugins/plugin2/plugin2.cpp
+++ b/src/libs/extensionsystem/test/manual/pluginview/plugins/plugin2/plugin2.cpp
@@ -43,7 +43,7 @@ MyPlugin2::MyPlugin2()
bool MyPlugin2::initialize(const QStringList & /*arguments*/, QString *errorString)
{
- Q_UNUSED(errorString);
+ Q_UNUSED(errorString)
initializeCalled = true;
QObject *obj = new QObject(this);
obj->setObjectName("MyPlugin2");
diff --git a/src/libs/qtconcurrent/multitask.h b/src/libs/qtconcurrent/multitask.h
index f166a5019f..a043cb4b15 100644
--- a/src/libs/qtconcurrent/multitask.h
+++ b/src/libs/qtconcurrent/multitask.h
@@ -126,20 +126,20 @@ protected:
void setProgressRange(int min, int max)
{
- Q_UNUSED(min);
- Q_UNUSED(max);
+ Q_UNUSED(min)
+ Q_UNUSED(max)
updateProgress();
}
void setProgressValue(int value)
{
- Q_UNUSED(value);
+ Q_UNUSED(value)
updateProgress();
}
void setProgressText(QString value)
{
- Q_UNUSED(value);
+ Q_UNUSED(value)
updateProgressText();
}
private:
diff --git a/src/plugins/bineditor/bineditorplugin.cpp b/src/plugins/bineditor/bineditorplugin.cpp
index d08d95829a..c0a17eb943 100644
--- a/src/plugins/bineditor/bineditorplugin.cpp
+++ b/src/plugins/bineditor/bineditorplugin.cpp
@@ -415,8 +415,8 @@ void BinEditorPlugin::initializeEditor(BinEditor *editor)
bool BinEditorPlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
- Q_UNUSED(arguments);
- Q_UNUSED(errorMessage);
+ Q_UNUSED(arguments)
+ Q_UNUSED(errorMessage)
Core::ICore *core = Core::ICore::instance();
if (!core->mimeDatabase()->addMimeTypes(QLatin1String(":/bineditor/BinEditor.mimetypes.xml"), errorMessage))
diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp
index 771a408040..91a3d9e62c 100644
--- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp
@@ -306,7 +306,7 @@ bool CMakeProject::parseCMakeLists()
QString CMakeProject::buildParser(const QString &buildConfiguration) const
{
- Q_UNUSED(buildConfiguration);
+ Q_UNUSED(buildConfiguration)
// TODO this is actually slightly wrong, but do i care?
// this should call toolchain(buildConfiguration)
if (!m_toolChain)
@@ -547,7 +547,7 @@ ProjectExplorer::ProjectNode *CMakeProject::rootProjectNode() const
QStringList CMakeProject::files(FilesMode fileMode) const
{
- Q_UNUSED(fileMode);
+ Q_UNUSED(fileMode)
return m_files;
}
@@ -664,7 +664,7 @@ bool CMakeFile::save(const QString &fileName)
{
// Once we have an texteditor open for this file, we probably do
// need to implement this, don't we.
- Q_UNUSED(fileName);
+ Q_UNUSED(fileName)
return false;
}
@@ -706,7 +706,7 @@ bool CMakeFile::isSaveAsAllowed() const
void CMakeFile::modified(ReloadBehavior *behavior)
{
- Q_UNUSED(behavior);
+ Q_UNUSED(behavior)
}
CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeProject *project)
diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp
index adef193df0..4a302b3aac 100644
--- a/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp
@@ -50,37 +50,37 @@ QList<ProjectExplorer::ProjectNode::ProjectAction> CMakeProjectNode::supportedAc
bool CMakeProjectNode::addSubProjects(const QStringList &proFilePaths)
{
- Q_UNUSED(proFilePaths);
+ Q_UNUSED(proFilePaths)
return false;
}
bool CMakeProjectNode::removeSubProjects(const QStringList &proFilePaths)
{
- Q_UNUSED(proFilePaths);
+ Q_UNUSED(proFilePaths)
return false;
}
bool CMakeProjectNode::addFiles(const ProjectExplorer::FileType fileType, const QStringList &filePaths, QStringList *notAdded)
{
- Q_UNUSED(fileType);
- Q_UNUSED(filePaths);
- Q_UNUSED(notAdded);
+ Q_UNUSED(fileType)
+ Q_UNUSED(filePaths)
+ Q_UNUSED(notAdded)
return false;
}
// TODO: Maybe remove fileType, can be detected by project
bool CMakeProjectNode::removeFiles(const ProjectExplorer::FileType fileType, const QStringList &filePaths, QStringList *notRemoved)
{
- Q_UNUSED(fileType);
- Q_UNUSED(filePaths);
- Q_UNUSED(notRemoved);
+ Q_UNUSED(fileType)
+ Q_UNUSED(filePaths)
+ Q_UNUSED(notRemoved)
return false;
}
bool CMakeProjectNode::renameFile(const ProjectExplorer::FileType fileType, const QString &filePath, const QString &newFilePath)
{
- Q_UNUSED(fileType);
- Q_UNUSED(filePath);
- Q_UNUSED(newFilePath);
+ Q_UNUSED(fileType)
+ Q_UNUSED(filePath)
+ Q_UNUSED(newFilePath)
return false;
}
diff --git a/src/plugins/coreplugin/coreplugin.cpp b/src/plugins/coreplugin/coreplugin.cpp
index 7d912a4578..a7a619b768 100644
--- a/src/plugins/coreplugin/coreplugin.cpp
+++ b/src/plugins/coreplugin/coreplugin.cpp
@@ -65,7 +65,7 @@ CorePlugin::~CorePlugin()
bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
- Q_UNUSED(arguments);
+ Q_UNUSED(arguments)
const bool success = m_mainWindow->init(errorMessage);
if (success) {
m_welcomeMode = new WelcomeMode;
diff --git a/src/plugins/coreplugin/dialogs/shortcutsettings.cpp b/src/plugins/coreplugin/dialogs/shortcutsettings.cpp
index 5bbd1cafd0..0145ce04bc 100644
--- a/src/plugins/coreplugin/dialogs/shortcutsettings.cpp
+++ b/src/plugins/coreplugin/dialogs/shortcutsettings.cpp
@@ -136,7 +136,7 @@ void ShortcutSettings::finish()
bool ShortcutSettings::eventFilter(QObject *o, QEvent *e)
{
- Q_UNUSED(o);
+ Q_UNUSED(o)
if ( e->type() == QEvent::KeyPress ) {
QKeyEvent *k = static_cast<QKeyEvent*>(e);
diff --git a/src/plugins/coreplugin/editormanager/openeditorsmodel.cpp b/src/plugins/coreplugin/editormanager/openeditorsmodel.cpp
index bd12fa01a9..82bad267ba 100644
--- a/src/plugins/coreplugin/editormanager/openeditorsmodel.cpp
+++ b/src/plugins/coreplugin/editormanager/openeditorsmodel.cpp
@@ -50,7 +50,7 @@ QByteArray OpenEditorsModel::Entry::kind() const
int OpenEditorsModel::columnCount(const QModelIndex &parent) const
{
- Q_UNUSED(parent);
+ Q_UNUSED(parent)
return 2;
}
@@ -239,7 +239,7 @@ void OpenEditorsModel::emitDataChanged(IEditor *editor)
QModelIndex OpenEditorsModel::index(int row, int column, const QModelIndex &parent) const
{
- Q_UNUSED(parent);
+ Q_UNUSED(parent)
if (column < 0 || column > 1 || row < 0 || row >= m_editors.count())
return QModelIndex();
return createIndex(row, column);
diff --git a/src/plugins/coreplugin/fancytabwidget.cpp b/src/plugins/coreplugin/fancytabwidget.cpp
index fd67445070..918d138b3b 100644
--- a/src/plugins/coreplugin/fancytabwidget.cpp
+++ b/src/plugins/coreplugin/fancytabwidget.cpp
@@ -142,7 +142,7 @@ void FancyTabBar::updateHover()
// Resets hover animation on mouse enter
void FancyTabBar::enterEvent(QEvent *e)
{
- Q_UNUSED(e);
+ Q_UNUSED(e)
m_hoverRect = QRect();
m_hoverIndex = -1;
}
@@ -150,7 +150,7 @@ void FancyTabBar::enterEvent(QEvent *e)
// Resets hover animation on mouse enter
void FancyTabBar::leaveEvent(QEvent *e)
{
- Q_UNUSED(e);
+ Q_UNUSED(e)
if (m_hoverIndex >= 0) {
m_hoverIndex = -1;
update(m_hoverRect);
diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp
index 95c7254c61..96f20c3d70 100644
--- a/src/plugins/coreplugin/mainwindow.cpp
+++ b/src/plugins/coreplugin/mainwindow.cpp
@@ -92,7 +92,7 @@
#include <signal.h>
extern "C" void handleSigInt(int sig)
{
- Q_UNUSED(sig);
+ Q_UNUSED(sig)
Core::ICore::instance()->exit();
qDebug() << "SIGINT caught. Shutting down.";
}
@@ -284,7 +284,7 @@ MainWindow::~MainWindow()
bool MainWindow::init(QString *errorMessage)
{
- Q_UNUSED(errorMessage);
+ Q_UNUSED(errorMessage)
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
pm->addObject(m_coreImpl);
diff --git a/src/plugins/coreplugin/styleanimator.cpp b/src/plugins/coreplugin/styleanimator.cpp
index f38d6a7245..deea2ddace 100644
--- a/src/plugins/coreplugin/styleanimator.cpp
+++ b/src/plugins/coreplugin/styleanimator.cpp
@@ -44,8 +44,8 @@ Animation * StyleAnimator::widgetAnimation(const QWidget *widget) const
void Animation::paint(QPainter *painter, const QStyleOption *option)
{
- Q_UNUSED(option);
- Q_UNUSED(painter);
+ Q_UNUSED(option)
+ Q_UNUSED(painter)
}
void Animation::drawBlendedImage(QPainter *painter, QRect rect, float alpha)
diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp
index d60fca10b5..31aca66d7d 100644
--- a/src/plugins/cpaster/cpasterplugin.cpp
+++ b/src/plugins/cpaster/cpasterplugin.cpp
@@ -74,8 +74,8 @@ CodepasterPlugin::~CodepasterPlugin()
bool CodepasterPlugin::initialize(const QStringList &arguments, QString *error_message)
{
- Q_UNUSED(arguments);
- Q_UNUSED(error_message);
+ Q_UNUSED(arguments)
+ Q_UNUSED(error_message)
// Create the globalcontext list to register actions accordingly
QList<int> globalcontext;
diff --git a/src/plugins/cpptools/cppcurrentdocumentfilter.cpp b/src/plugins/cpptools/cppcurrentdocumentfilter.cpp
index a6c0506ce5..4be55bd840 100644
--- a/src/plugins/cpptools/cppcurrentdocumentfilter.cpp
+++ b/src/plugins/cpptools/cppcurrentdocumentfilter.cpp
@@ -108,7 +108,7 @@ void CppCurrentDocumentFilter::accept(QuickOpen::FilterEntry selection) const
void CppCurrentDocumentFilter::refresh(QFutureInterface<void> &future)
{
- Q_UNUSED(future);
+ Q_UNUSED(future)
}
void CppCurrentDocumentFilter::onDocumentUpdated(Document::Ptr doc)
diff --git a/src/plugins/cpptools/cppquickopenfilter.cpp b/src/plugins/cpptools/cppquickopenfilter.cpp
index ac078ec9e9..9f026c6b39 100644
--- a/src/plugins/cpptools/cppquickopenfilter.cpp
+++ b/src/plugins/cpptools/cppquickopenfilter.cpp
@@ -68,7 +68,7 @@ void CppQuickOpenFilter::onAboutToRemoveFiles(const QStringList &files)
void CppQuickOpenFilter::refresh(QFutureInterface<void> &future)
{
- Q_UNUSED(future);
+ Q_UNUSED(future)
}
static bool compareLexigraphically(const QuickOpen::FilterEntry &a,
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp
index 7a68c5b576..30858508d4 100644
--- a/src/plugins/cpptools/cpptoolsplugin.cpp
+++ b/src/plugins/cpptools/cpptoolsplugin.cpp
@@ -198,8 +198,8 @@ CppToolsPlugin::~CppToolsPlugin()
bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
{
- Q_UNUSED(arguments);
- Q_UNUSED(error);
+ Q_UNUSED(arguments)
+ Q_UNUSED(error)
Core::ICore *core = Core::ICore::instance();
Core::ActionManager *am = core->actionManager();
diff --git a/src/plugins/debugger/debuggeroutputwindow.cpp b/src/plugins/debugger/debuggeroutputwindow.cpp
index 5d588c2fec..837747e85d 100644
--- a/src/plugins/debugger/debuggeroutputwindow.cpp
+++ b/src/plugins/debugger/debuggeroutputwindow.cpp
@@ -350,7 +350,7 @@ void DebuggerOutputWindow::showOutput(int channel, const QString &output)
void DebuggerOutputWindow::showInput(int channel, const QString &input)
{
- Q_UNUSED(channel);
+ Q_UNUSED(channel)
m_inputText->appendPlainText(input);
QTextCursor cursor = m_inputText->textCursor();
cursor.movePosition(QTextCursor::End);
diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp
index 21d809e901..4b151c52cf 100644
--- a/src/plugins/debugger/debuggerrunner.cpp
+++ b/src/plugins/debugger/debuggerrunner.cpp
@@ -97,7 +97,7 @@ RunControl *DebuggerRunner::run(RunConfigurationPtr runConfiguration,
QWidget *DebuggerRunner::configurationWidget(RunConfigurationPtr runConfiguration)
{
// NBS TODO: Add GDB-specific configuration widget
- Q_UNUSED(runConfiguration);
+ Q_UNUSED(runConfiguration)
return 0;
}
diff --git a/src/plugins/debugger/debuggertooltip.cpp b/src/plugins/debugger/debuggertooltip.cpp
index 622a8948e8..a5a72cdde0 100644
--- a/src/plugins/debugger/debuggertooltip.cpp
+++ b/src/plugins/debugger/debuggertooltip.cpp
@@ -90,7 +90,7 @@ ToolTipWidget::ToolTipWidget(QWidget *parent)
bool ToolTipWidget::eventFilter(QObject *ob, QEvent *ev)
{
- Q_UNUSED(ob);
+ Q_UNUSED(ob)
switch (ev->type()) {
case QEvent::ShortcutOverride:
if (static_cast<QKeyEvent *>(ev)->key() == Qt::Key_Escape)
diff --git a/src/plugins/debugger/disassemblerhandler.cpp b/src/plugins/debugger/disassemblerhandler.cpp
index 334348b428..74bf2f0815 100644
--- a/src/plugins/debugger/disassemblerhandler.cpp
+++ b/src/plugins/debugger/disassemblerhandler.cpp
@@ -91,13 +91,13 @@ DisassemblerModel::DisassemblerModel(QObject *parent)
int DisassemblerModel::rowCount(const QModelIndex &parent) const
{
- Q_UNUSED(parent);
+ Q_UNUSED(parent)
return m_lines.size();
}
int DisassemblerModel::columnCount(const QModelIndex &parent) const
{
- Q_UNUSED(parent);
+ Q_UNUSED(parent)
return 3;
}
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index 4819a12618..fa8f9d7a0a 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -352,7 +352,7 @@ void GdbEngine::readUploadStandardError()
static void dump(const char *first, const char *middle, const QString & to)
{
QByteArray ba(first, middle - first);
- Q_UNUSED(to);
+ Q_UNUSED(to)
// note that qDebug cuts off output after a certain size... (bug?)
qDebug("\n>>>>> %s\n%s\n====\n%s\n<<<<<\n",
qPrintable(currentTime()),
@@ -1641,7 +1641,7 @@ void GdbEngine::continueInferior()
void GdbEngine::handleStart(const GdbResultRecord &response, const QVariant &)
{
#if defined(Q_OS_MAC)
- Q_UNUSED(response);
+ Q_UNUSED(response)
#else
if (response.resultClass == GdbResultDone) {
// [some leading stdout here]
@@ -2689,7 +2689,7 @@ static QString tooltipINameForExpression(const QString &exp)
{
// FIXME: 'exp' can contain illegal characters
//return QLatin1String("tooltip.") + exp;
- Q_UNUSED(exp);
+ Q_UNUSED(exp)
return QLatin1String("tooltip.x");
}
@@ -2865,7 +2865,7 @@ void GdbEngine::setUseDebuggingHelpers(const QVariant &on)
//qDebug() << "SWITCHING ON/OFF DUMPER DEBUGGING:" << on;
// FIXME: a bit too harsh, but otherwise the treeview sometimes look funny
//m_expandedINames.clear();
- Q_UNUSED(on);
+ Q_UNUSED(on)
setTokenBarrier();
updateLocals();
}
@@ -2899,7 +2899,7 @@ static inline QString msgRetrievingWatchData(int pending)
void GdbEngine::runDirectDebuggingHelper(const WatchData &data, bool dumpChildren)
{
- Q_UNUSED(dumpChildren);
+ Q_UNUSED(dumpChildren)
QString type = data.type;
QString cmd;
diff --git a/src/plugins/debugger/script/scriptengine.cpp b/src/plugins/debugger/script/scriptengine.cpp
index 28d20a24cc..59f54c2c44 100644
--- a/src/plugins/debugger/script/scriptengine.cpp
+++ b/src/plugins/debugger/script/scriptengine.cpp
@@ -124,57 +124,57 @@ void ScriptAgent::contextPush()
void ScriptAgent::exceptionCatch(qint64 scriptId, const QScriptValue & exception)
{
- Q_UNUSED(scriptId);
- Q_UNUSED(exception);
+ Q_UNUSED(scriptId)
+ Q_UNUSED(exception)
SDEBUG("ScriptAgent::exceptionCatch: " << scriptId << &exception);
}
void ScriptAgent::exceptionThrow(qint64 scriptId, const QScriptValue &exception,
bool hasHandler)
{
- Q_UNUSED(scriptId);
- Q_UNUSED(exception);
- Q_UNUSED(hasHandler);
+ Q_UNUSED(scriptId)
+ Q_UNUSED(exception)
+ Q_UNUSED(hasHandler)
SDEBUG("ScriptAgent::exceptionThrow: " << scriptId << &exception
<< hasHandler);
}
void ScriptAgent::functionEntry(qint64 scriptId)
{
- Q_UNUSED(scriptId);
+ Q_UNUSED(scriptId)
q->maybeBreakNow(true);
}
void ScriptAgent::functionExit(qint64 scriptId, const QScriptValue &returnValue)
{
- Q_UNUSED(scriptId);
- Q_UNUSED(returnValue);
+ Q_UNUSED(scriptId)
+ Q_UNUSED(returnValue)
SDEBUG("ScriptAgent::functionExit: " << scriptId << &returnValue);
}
void ScriptAgent::positionChange(qint64 scriptId, int lineNumber, int columnNumber)
{
SDEBUG("ScriptAgent::position: " << lineNumber);
- Q_UNUSED(scriptId);
- Q_UNUSED(lineNumber);
- Q_UNUSED(columnNumber);
+ Q_UNUSED(scriptId)
+ Q_UNUSED(lineNumber)
+ Q_UNUSED(columnNumber)
q->maybeBreakNow(false);
}
void ScriptAgent::scriptLoad(qint64 scriptId, const QString &program,
const QString &fileName, int baseLineNumber)
{
- Q_UNUSED(scriptId);
- Q_UNUSED(program);
- Q_UNUSED(fileName);
- Q_UNUSED(baseLineNumber);
+ Q_UNUSED(scriptId)
+ Q_UNUSED(program)
+ Q_UNUSED(fileName)
+ Q_UNUSED(baseLineNumber)
SDEBUG("ScriptAgent::scriptLoad: " << program << fileName
<< baseLineNumber);
}
void ScriptAgent::scriptUnload(qint64 scriptId)
{
- Q_UNUSED(scriptId);
+ Q_UNUSED(scriptId)
SDEBUG("ScriptAgent::scriptUnload: " << scriptId);
}
@@ -201,7 +201,7 @@ ScriptEngine::~ScriptEngine()
void ScriptEngine::executeDebuggerCommand(const QString &command)
{
- Q_UNUSED(command);
+ Q_UNUSED(command)
XSDEBUG("FIXME: ScriptEngine::executeDebuggerCommand()");
}
@@ -344,32 +344,32 @@ void ScriptEngine::nextIExec()
void ScriptEngine::runToLineExec(const QString &fileName, int lineNumber)
{
- Q_UNUSED(fileName);
- Q_UNUSED(lineNumber);
+ Q_UNUSED(fileName)
+ Q_UNUSED(lineNumber)
SDEBUG("FIXME: ScriptEngine::runToLineExec()");
}
void ScriptEngine::runToFunctionExec(const QString &functionName)
{
- Q_UNUSED(functionName);
+ Q_UNUSED(functionName)
XSDEBUG("FIXME: ScriptEngine::runToFunctionExec()");
}
void ScriptEngine::jumpToLineExec(const QString &fileName, int lineNumber)
{
- Q_UNUSED(fileName);
- Q_UNUSED(lineNumber);
+ Q_UNUSED(fileName)
+ Q_UNUSED(lineNumber)
XSDEBUG("FIXME: ScriptEngine::jumpToLineExec()");
}
void ScriptEngine::activateFrame(int index)
{
- Q_UNUSED(index);
+ Q_UNUSED(index)
}
void ScriptEngine::selectThread(int index)
{
- Q_UNUSED(index);
+ Q_UNUSED(index)
}
void ScriptEngine::attemptBreakpointSynchronization()
@@ -402,7 +402,7 @@ void ScriptEngine::reloadDisassembler()
void ScriptEngine::loadSymbols(const QString &moduleName)
{
- Q_UNUSED(moduleName);
+ Q_UNUSED(moduleName)
}
void ScriptEngine::loadAllSymbols()
@@ -431,9 +431,9 @@ static QHash<QString, WatchData> m_toolTipCache;
void ScriptEngine::setToolTipExpression(const QPoint &mousePos, TextEditor::ITextEditor *editor, int cursorPos)
{
- Q_UNUSED(mousePos);
- Q_UNUSED(editor);
- Q_UNUSED(cursorPos);
+ Q_UNUSED(mousePos)
+ Q_UNUSED(editor)
+ Q_UNUSED(cursorPos)
if (q->status() != DebuggerInferiorStopped) {
//SDEBUG("SUPPRESSING DEBUGGER TOOLTIP, INFERIOR NOT STOPPED");
diff --git a/src/plugins/debugger/tcf/tcfengine.cpp b/src/plugins/debugger/tcf/tcfengine.cpp
index b699f40954..8e5b21e0dd 100644
--- a/src/plugins/debugger/tcf/tcfengine.cpp
+++ b/src/plugins/debugger/tcf/tcfengine.cpp
@@ -273,32 +273,32 @@ void TcfEngine::nextIExec()
void TcfEngine::runToLineExec(const QString &fileName, int lineNumber)
{
- Q_UNUSED(fileName);
- Q_UNUSED(lineNumber);
+ Q_UNUSED(fileName)
+ Q_UNUSED(lineNumber)
SDEBUG("FIXME: TcfEngine::runToLineExec()");
}
void TcfEngine::runToFunctionExec(const QString &functionName)
{
- Q_UNUSED(functionName);
+ Q_UNUSED(functionName)
XSDEBUG("FIXME: TcfEngine::runToFunctionExec()");
}
void TcfEngine::jumpToLineExec(const QString &fileName, int lineNumber)
{
- Q_UNUSED(fileName);
- Q_UNUSED(lineNumber);
+ Q_UNUSED(fileName)
+ Q_UNUSED(lineNumber)
XSDEBUG("FIXME: TcfEngine::jumpToLineExec()");
}
void TcfEngine::activateFrame(int index)
{
- Q_UNUSED(index);
+ Q_UNUSED(index)
}
void TcfEngine::selectThread(int index)
{
- Q_UNUSED(index);
+ Q_UNUSED(index)
}
void TcfEngine::attemptBreakpointSynchronization()
@@ -311,7 +311,7 @@ void TcfEngine::reloadDisassembler()
void TcfEngine::loadSymbols(const QString &moduleName)
{
- Q_UNUSED(moduleName);
+ Q_UNUSED(moduleName)
}
void TcfEngine::loadAllSymbols()
@@ -498,7 +498,7 @@ void TcfEngine::sendCommandNow(const TcfCommand &cmd)
{
++m_inAir;
int result = m_socket->write(cmd.command);
- Q_UNUSED(result);
+ Q_UNUSED(result)
m_socket->flush();
emit tcfInputAvailable(LogInput, QString::number(cmd.token) + " " + cmd.toString());
SDEBUG("SEND " << cmd.toString()); //<< " " << QString::number(result));
@@ -572,7 +572,7 @@ void TcfEngine::updateWatchData(const WatchData &)
void TcfEngine::updateSubItem(const WatchData &data0)
{
- Q_UNUSED(data0);
+ Q_UNUSED(data0)
QTC_ASSERT(false, return);
}
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 5230c8c857..b6dad71d4a 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -572,7 +572,7 @@ int WatchModel::rowCount(const QModelIndex &idx) const
int WatchModel::columnCount(const QModelIndex &idx) const
{
- Q_UNUSED(idx);
+ Q_UNUSED(idx)
return 3;
}
@@ -997,8 +997,8 @@ void WatchHandler::watchExpression(const QString &exp)
void WatchHandler::setDisplayedIName(const QString &iname, bool on)
{
- Q_UNUSED(iname);
- Q_UNUSED(on);
+ Q_UNUSED(iname)
+ Q_UNUSED(on)
/*
WatchData *d = findData(iname);
if (!on || !d) {
diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp
index 2737d05b4f..571e8ac4b9 100644
--- a/src/plugins/debugger/watchwindow.cpp
+++ b/src/plugins/debugger/watchwindow.cpp
@@ -318,7 +318,7 @@ bool WatchWindow::event(QEvent *ev)
void WatchWindow::editItem(const QModelIndex &idx)
{
- Q_UNUSED(idx); // FIXME
+ Q_UNUSED(idx) // FIXME
}
void WatchWindow::setModel(QAbstractItemModel *model)
diff --git a/src/plugins/designer/formeditorplugin.cpp b/src/plugins/designer/formeditorplugin.cpp
index 3508626fb8..c5188bc72e 100644
--- a/src/plugins/designer/formeditorplugin.cpp
+++ b/src/plugins/designer/formeditorplugin.cpp
@@ -77,8 +77,8 @@ FormEditorPlugin::~FormEditorPlugin()
////////////////////////////////////////////////////
bool FormEditorPlugin::initialize(const QStringList &arguments, QString *error)
{
- Q_UNUSED(arguments);
- Q_UNUSED(error);
+ Q_UNUSED(arguments)
+ Q_UNUSED(error)
Core::ICore *core = Core::ICore::instance();
if (!core->mimeDatabase()->addMimeTypes(QLatin1String(":/formeditor/Designer.mimetypes.xml"), error))
diff --git a/src/plugins/duieditor/parser/qmljsprettypretty.cpp b/src/plugins/duieditor/parser/qmljsprettypretty.cpp
index d0ec489b79..3a89206ffa 100644
--- a/src/plugins/duieditor/parser/qmljsprettypretty.cpp
+++ b/src/plugins/duieditor/parser/qmljsprettypretty.cpp
@@ -170,14 +170,14 @@ void PrettyPretty::accept(AST::Node *node)
bool PrettyPretty::visit(AST::ThisExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "this";
return true;
}
void PrettyPretty::endVisit(AST::ThisExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::IdentifierExpression *node)
@@ -188,43 +188,43 @@ bool PrettyPretty::visit(AST::IdentifierExpression *node)
void PrettyPretty::endVisit(AST::IdentifierExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::NullExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "null";
return false;
}
void PrettyPretty::endVisit(AST::NullExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::TrueLiteral *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "true";
return false;
}
void PrettyPretty::endVisit(AST::TrueLiteral *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::FalseLiteral *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "false";
return false;
}
void PrettyPretty::endVisit(AST::FalseLiteral *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::StringLiteral *node)
@@ -237,7 +237,7 @@ bool PrettyPretty::visit(AST::StringLiteral *node)
void PrettyPretty::endVisit(AST::StringLiteral *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::NumericLiteral *node)
@@ -248,7 +248,7 @@ bool PrettyPretty::visit(AST::NumericLiteral *node)
void PrettyPretty::endVisit(AST::NumericLiteral *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::RegExpLiteral *node)
@@ -262,7 +262,7 @@ bool PrettyPretty::visit(AST::RegExpLiteral *node)
void PrettyPretty::endVisit(AST::RegExpLiteral *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ArrayLiteral *node)
@@ -276,7 +276,7 @@ bool PrettyPretty::visit(AST::ArrayLiteral *node)
void PrettyPretty::endVisit(AST::ArrayLiteral *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ObjectLiteral *node)
@@ -300,7 +300,7 @@ bool PrettyPretty::visit(AST::ObjectLiteral *node)
void PrettyPretty::endVisit(AST::ObjectLiteral *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ElementList *node)
@@ -317,7 +317,7 @@ bool PrettyPretty::visit(AST::ElementList *node)
void PrettyPretty::endVisit(AST::ElementList *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::Elision *node)
@@ -330,7 +330,7 @@ bool PrettyPretty::visit(AST::Elision *node)
void PrettyPretty::endVisit(AST::Elision *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::PropertyNameAndValueList *node)
@@ -343,7 +343,7 @@ bool PrettyPretty::visit(AST::PropertyNameAndValueList *node)
void PrettyPretty::endVisit(AST::PropertyNameAndValueList *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::IdentifierPropertyName *node)
@@ -354,7 +354,7 @@ bool PrettyPretty::visit(AST::IdentifierPropertyName *node)
void PrettyPretty::endVisit(AST::IdentifierPropertyName *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::StringLiteralPropertyName *node)
@@ -367,7 +367,7 @@ bool PrettyPretty::visit(AST::StringLiteralPropertyName *node)
void PrettyPretty::endVisit(AST::StringLiteralPropertyName *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::NumericLiteralPropertyName *node)
@@ -378,7 +378,7 @@ bool PrettyPretty::visit(AST::NumericLiteralPropertyName *node)
void PrettyPretty::endVisit(AST::NumericLiteralPropertyName *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ArrayMemberExpression *node)
@@ -392,7 +392,7 @@ bool PrettyPretty::visit(AST::ArrayMemberExpression *node)
void PrettyPretty::endVisit(AST::ArrayMemberExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::FieldMemberExpression *node)
@@ -404,7 +404,7 @@ bool PrettyPretty::visit(AST::FieldMemberExpression *node)
void PrettyPretty::endVisit(AST::FieldMemberExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::NewMemberExpression *node)
@@ -419,19 +419,19 @@ bool PrettyPretty::visit(AST::NewMemberExpression *node)
void PrettyPretty::endVisit(AST::NewMemberExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::NewExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "new ";
return true;
}
void PrettyPretty::endVisit(AST::NewExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::CallExpression *node)
@@ -445,7 +445,7 @@ bool PrettyPretty::visit(AST::CallExpression *node)
void PrettyPretty::endVisit(AST::CallExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ArgumentList *node)
@@ -460,91 +460,91 @@ bool PrettyPretty::visit(AST::ArgumentList *node)
void PrettyPretty::endVisit(AST::ArgumentList *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::PostIncrementExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
return true;
}
void PrettyPretty::endVisit(AST::PostIncrementExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "++";
}
bool PrettyPretty::visit(AST::PostDecrementExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
return true;
}
void PrettyPretty::endVisit(AST::PostDecrementExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "--";
}
bool PrettyPretty::visit(AST::DeleteExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "delete ";
return true;
}
void PrettyPretty::endVisit(AST::DeleteExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::VoidExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "void ";
return true;
}
void PrettyPretty::endVisit(AST::VoidExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::TypeOfExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "typeof ";
return true;
}
void PrettyPretty::endVisit(AST::TypeOfExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::PreIncrementExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "++";
return true;
}
void PrettyPretty::endVisit(AST::PreIncrementExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::PreDecrementExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "--";
return true;
}
void PrettyPretty::endVisit(AST::PreDecrementExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::UnaryPlusExpression *node)
@@ -561,7 +561,7 @@ bool PrettyPretty::visit(AST::UnaryPlusExpression *node)
void PrettyPretty::endVisit(AST::UnaryPlusExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::UnaryMinusExpression *node)
@@ -578,7 +578,7 @@ bool PrettyPretty::visit(AST::UnaryMinusExpression *node)
void PrettyPretty::endVisit(AST::UnaryMinusExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::TildeExpression *node)
@@ -595,7 +595,7 @@ bool PrettyPretty::visit(AST::TildeExpression *node)
void PrettyPretty::endVisit(AST::TildeExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::NotExpression *node)
@@ -612,7 +612,7 @@ bool PrettyPretty::visit(AST::NotExpression *node)
void PrettyPretty::endVisit(AST::NotExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::BinaryExpression *node)
@@ -712,7 +712,7 @@ bool PrettyPretty::visit(AST::BinaryExpression *node)
void PrettyPretty::endVisit(AST::BinaryExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ConditionalExpression *node)
@@ -727,7 +727,7 @@ bool PrettyPretty::visit(AST::ConditionalExpression *node)
void PrettyPretty::endVisit(AST::ConditionalExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::Expression *node)
@@ -740,18 +740,18 @@ bool PrettyPretty::visit(AST::Expression *node)
void PrettyPretty::endVisit(AST::Expression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::Block *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
return true;
}
void PrettyPretty::endVisit(AST::Block *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::StatementList *node)
@@ -766,7 +766,7 @@ bool PrettyPretty::visit(AST::StatementList *node)
void PrettyPretty::endVisit(AST::StatementList *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::VariableDeclarationList *node)
@@ -785,19 +785,19 @@ bool PrettyPretty::visit(AST::VariableDeclarationList *node)
void PrettyPretty::endVisit(AST::VariableDeclarationList *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::VariableStatement *node)
{
out << "var ";
- Q_UNUSED(node);
+ Q_UNUSED(node)
return true;
}
void PrettyPretty::endVisit(AST::VariableStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << ";";
}
@@ -813,19 +813,19 @@ bool PrettyPretty::visit(AST::VariableDeclaration *node)
void PrettyPretty::endVisit(AST::VariableDeclaration *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::EmptyStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << ";";
return true;
}
void PrettyPretty::endVisit(AST::EmptyStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ExpressionStatement *node)
@@ -837,7 +837,7 @@ bool PrettyPretty::visit(AST::ExpressionStatement *node)
void PrettyPretty::endVisit(AST::ExpressionStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::IfStatement *node)
@@ -855,7 +855,7 @@ bool PrettyPretty::visit(AST::IfStatement *node)
void PrettyPretty::endVisit(AST::IfStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::DoWhileStatement *node)
@@ -870,7 +870,7 @@ bool PrettyPretty::visit(AST::DoWhileStatement *node)
void PrettyPretty::endVisit(AST::DoWhileStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::WhileStatement *node)
@@ -884,7 +884,7 @@ bool PrettyPretty::visit(AST::WhileStatement *node)
void PrettyPretty::endVisit(AST::WhileStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ForStatement *node)
@@ -902,7 +902,7 @@ bool PrettyPretty::visit(AST::ForStatement *node)
void PrettyPretty::endVisit(AST::ForStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::LocalForStatement *node)
@@ -920,7 +920,7 @@ bool PrettyPretty::visit(AST::LocalForStatement *node)
void PrettyPretty::endVisit(AST::LocalForStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ForEachStatement *node)
@@ -936,7 +936,7 @@ bool PrettyPretty::visit(AST::ForEachStatement *node)
void PrettyPretty::endVisit(AST::ForEachStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::LocalForEachStatement *node)
@@ -952,7 +952,7 @@ bool PrettyPretty::visit(AST::LocalForEachStatement *node)
void PrettyPretty::endVisit(AST::LocalForEachStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ContinueStatement *node)
@@ -967,7 +967,7 @@ bool PrettyPretty::visit(AST::ContinueStatement *node)
void PrettyPretty::endVisit(AST::ContinueStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::BreakStatement *node)
@@ -982,7 +982,7 @@ bool PrettyPretty::visit(AST::BreakStatement *node)
void PrettyPretty::endVisit(AST::BreakStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ReturnStatement *node)
@@ -998,7 +998,7 @@ bool PrettyPretty::visit(AST::ReturnStatement *node)
void PrettyPretty::endVisit(AST::ReturnStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::WithStatement *node)
@@ -1012,7 +1012,7 @@ bool PrettyPretty::visit(AST::WithStatement *node)
void PrettyPretty::endVisit(AST::WithStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::SwitchStatement *node)
@@ -1026,7 +1026,7 @@ bool PrettyPretty::visit(AST::SwitchStatement *node)
void PrettyPretty::endVisit(AST::SwitchStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::CaseBlock *node)
@@ -1045,7 +1045,7 @@ bool PrettyPretty::visit(AST::CaseBlock *node)
void PrettyPretty::endVisit(AST::CaseBlock *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::CaseClauses *node)
@@ -1060,7 +1060,7 @@ bool PrettyPretty::visit(AST::CaseClauses *node)
void PrettyPretty::endVisit(AST::CaseClauses *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::CaseClause *node)
@@ -1077,12 +1077,12 @@ bool PrettyPretty::visit(AST::CaseClause *node)
void PrettyPretty::endVisit(AST::CaseClause *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::DefaultClause *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "default:";
newlineAndIndent();
return true;
@@ -1090,7 +1090,7 @@ bool PrettyPretty::visit(AST::DefaultClause *node)
void PrettyPretty::endVisit(AST::DefaultClause *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::LabelledStatement *node)
@@ -1101,12 +1101,12 @@ bool PrettyPretty::visit(AST::LabelledStatement *node)
void PrettyPretty::endVisit(AST::LabelledStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::ThrowStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "throw ";
accept(node->expression);
out << ";";
@@ -1115,7 +1115,7 @@ bool PrettyPretty::visit(AST::ThrowStatement *node)
void PrettyPretty::endVisit(AST::ThrowStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::TryStatement *node)
@@ -1135,30 +1135,30 @@ bool PrettyPretty::visit(AST::TryStatement *node)
void PrettyPretty::endVisit(AST::TryStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::Catch *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
return true;
}
void PrettyPretty::endVisit(AST::Catch *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::Finally *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "finally ";
return true;
}
void PrettyPretty::endVisit(AST::Finally *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::FunctionDeclaration *node)
@@ -1197,7 +1197,7 @@ bool PrettyPretty::visit(AST::FunctionDeclaration *node)
void PrettyPretty::endVisit(AST::FunctionDeclaration *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::FunctionExpression *node)
@@ -1236,45 +1236,45 @@ bool PrettyPretty::visit(AST::FunctionExpression *node)
void PrettyPretty::endVisit(AST::FunctionExpression *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::FormalParameterList *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
return true;
}
void PrettyPretty::endVisit(AST::FormalParameterList *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::FunctionBody *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
return true;
}
void PrettyPretty::endVisit(AST::FunctionBody *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::Program *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
return true;
}
void PrettyPretty::endVisit(AST::Program *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::SourceElements *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
accept(node->element);
for (node = node->next; node != 0; node = node->next) {
newlineAndIndent();
@@ -1285,47 +1285,47 @@ bool PrettyPretty::visit(AST::SourceElements *node)
void PrettyPretty::endVisit(AST::SourceElements *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::FunctionSourceElement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
return true;
}
void PrettyPretty::endVisit(AST::FunctionSourceElement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::StatementSourceElement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
return true;
}
void PrettyPretty::endVisit(AST::StatementSourceElement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
}
bool PrettyPretty::visit(AST::DebuggerStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << "debugger";
return true;
}
void PrettyPretty::endVisit(AST::DebuggerStatement *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
out << ";";
}
bool PrettyPretty::preVisit(AST::Node *node)
{
- Q_UNUSED(node);
+ Q_UNUSED(node)
return true;
}
diff --git a/src/plugins/find/currentdocumentfind.cpp b/src/plugins/find/currentdocumentfind.cpp
index dbd9071240..1fc029a1d9 100644
--- a/src/plugins/find/currentdocumentfind.cpp
+++ b/src/plugins/find/currentdocumentfind.cpp
@@ -141,7 +141,7 @@ void CurrentDocumentFind::clearFindScope()
void CurrentDocumentFind::updateCurrentFindFilter(QWidget *old, QWidget *now)
{
- Q_UNUSED(old);
+ Q_UNUSED(old)
QWidget *candidate = now;
QPointer<IFindSupport> impl = 0;
while (!impl && candidate) {
diff --git a/src/plugins/find/ifindfilter.h b/src/plugins/find/ifindfilter.h
index 88926c686d..eb5d02e117 100644
--- a/src/plugins/find/ifindfilter.h
+++ b/src/plugins/find/ifindfilter.h
@@ -54,8 +54,8 @@ public:
virtual void findAll(const QString &txt, QTextDocument::FindFlags findFlags) = 0;
virtual QWidget *createConfigWidget() { return 0; }
- virtual void writeSettings(QSettings *settings) { Q_UNUSED(settings); }
- virtual void readSettings(QSettings *settings) { Q_UNUSED(settings); }
+ virtual void writeSettings(QSettings *settings) { Q_UNUSED(settings) }
+ virtual void readSettings(QSettings *settings) { Q_UNUSED(settings) }
signals:
void changed();
diff --git a/src/plugins/find/searchresulttreemodel.cpp b/src/plugins/find/searchresulttreemodel.cpp
index 3d9a3f3cca..a53b8fe595 100644
--- a/src/plugins/find/searchresulttreemodel.cpp
+++ b/src/plugins/find/searchresulttreemodel.cpp
@@ -105,7 +105,7 @@ int SearchResultTreeModel::rowCount(const QModelIndex &parent) const
int SearchResultTreeModel::columnCount(const QModelIndex &parent) const
{
- Q_UNUSED(parent);
+ Q_UNUSED(parent)
return 1;
}
@@ -211,9 +211,9 @@ QVariant SearchResultTreeModel::data(const SearchResultFile *file, int role) con
QVariant SearchResultTreeModel::headerData(int section, Qt::Orientation orientation,
int role) const
{
- Q_UNUSED(section);
- Q_UNUSED(orientation);
- Q_UNUSED(role);
+ Q_UNUSED(section)
+ Q_UNUSED(orientation)
+ Q_UNUSED(role)
return QVariant();
}
diff --git a/src/plugins/find/searchresultwindow.cpp b/src/plugins/find/searchresultwindow.cpp
index 70c0978ebc..d4ae8d926d 100644
--- a/src/plugins/find/searchresultwindow.cpp
+++ b/src/plugins/find/searchresultwindow.cpp
@@ -145,7 +145,7 @@ void SearchResultWindow::setTextEditorFont(const QFont &font)
void SearchResultWindow::handleJumpToSearchResult(int index, const QString &fileName, int lineNumber,
int searchTermStart, int searchTermLength)
{
- Q_UNUSED(searchTermLength);
+ Q_UNUSED(searchTermLength)
ResultWindowItem *item = m_items.at(index);
emit item->activated(fileName, lineNumber, searchTermStart);
}
diff --git a/src/plugins/genericprojectmanager/genericprojectnodes.cpp b/src/plugins/genericprojectmanager/genericprojectnodes.cpp
index e8668a0d7c..d9e4d3155c 100644
--- a/src/plugins/genericprojectmanager/genericprojectnodes.cpp
+++ b/src/plugins/genericprojectmanager/genericprojectnodes.cpp
@@ -173,21 +173,21 @@ QList<ProjectExplorer::ProjectNode::ProjectAction> GenericProjectNode::supported
bool GenericProjectNode::addSubProjects(const QStringList &proFilePaths)
{
- Q_UNUSED(proFilePaths);
+ Q_UNUSED(proFilePaths)
return false;
}
bool GenericProjectNode::removeSubProjects(const QStringList &proFilePaths)
{
- Q_UNUSED(proFilePaths);
+ Q_UNUSED(proFilePaths)
return false;
}
bool GenericProjectNode::addFiles(const ProjectExplorer::FileType fileType,
const QStringList &filePaths, QStringList *notAdded)
{
- Q_UNUSED(fileType);
- Q_UNUSED(notAdded);
+ Q_UNUSED(fileType)
+ Q_UNUSED(notAdded)
return m_project->addFiles(filePaths);
}
@@ -195,8 +195,8 @@ bool GenericProjectNode::addFiles(const ProjectExplorer::FileType fileType,
bool GenericProjectNode::removeFiles(const ProjectExplorer::FileType fileType,
const QStringList &filePaths, QStringList *notRemoved)
{
- Q_UNUSED(fileType);
- Q_UNUSED(notRemoved);
+ Q_UNUSED(fileType)
+ Q_UNUSED(notRemoved)
return m_project->removeFiles(filePaths);
}
@@ -204,8 +204,8 @@ bool GenericProjectNode::removeFiles(const ProjectExplorer::FileType fileType,
bool GenericProjectNode::renameFile(const ProjectExplorer::FileType fileType,
const QString &filePath, const QString &newFilePath)
{
- Q_UNUSED(fileType);
- Q_UNUSED(filePath);
- Q_UNUSED(newFilePath);
+ Q_UNUSED(fileType)
+ Q_UNUSED(filePath)
+ Q_UNUSED(newFilePath)
return false;
}
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp
index 3919232ac0..90f1926194 100644
--- a/src/plugins/git/gitplugin.cpp
+++ b/src/plugins/git/gitplugin.cpp
@@ -226,8 +226,8 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
typedef VCSBase::VCSEditorFactory<GitEditor> GitEditorFactory;
typedef VCSBase::VCSSubmitEditorFactory<GitSubmitEditor> GitSubmitEditorFactory;
- Q_UNUSED(arguments);
- Q_UNUSED(errorMessage);
+ Q_UNUSED(arguments)
+ Q_UNUSED(errorMessage)
m_core = Core::ICore::instance();
m_gitClient = new GitClient(this);
diff --git a/src/plugins/help/centralwidget.cpp b/src/plugins/help/centralwidget.cpp
index 20ae95f006..89d711722b 100644
--- a/src/plugins/help/centralwidget.cpp
+++ b/src/plugins/help/centralwidget.cpp
@@ -354,7 +354,7 @@ void CentralWidget::printPreview(QPrinter *p)
if (viewer)
viewer->print(p);
#else
- Q_UNUSED(p);
+ Q_UNUSED(p)
#endif
}
@@ -513,7 +513,7 @@ void CentralWidget::setTabTitle(const QUrl& url)
}
}
#else
- Q_UNUSED(url);
+ Q_UNUSED(url)
#endif
if (viewer) {
@@ -643,7 +643,7 @@ bool CentralWidget::find(const QString &txt, QTextDocument::FindFlags findFlags,
HelpViewer* viewer = currentHelpViewer();
#if !defined(QT_NO_WEBKIT)
- Q_UNUSED(incremental);
+ Q_UNUSED(incremental)
if (viewer) {
QWebPage::FindFlags options = QWebPage::FindWrapsAroundDocument;
if (findFlags & QTextDocument::FindBackward)
diff --git a/src/plugins/help/helpfindsupport.cpp b/src/plugins/help/helpfindsupport.cpp
index abc7e2d239..2ba2eb7aa4 100644
--- a/src/plugins/help/helpfindsupport.cpp
+++ b/src/plugins/help/helpfindsupport.cpp
@@ -123,7 +123,7 @@ bool HelpViewerFindSupport::find(const QString &txt, Find::IFindSupport::FindFla
{
QTC_ASSERT(m_viewer, return false);
#if !defined(QT_NO_WEBKIT)
- Q_UNUSED(incremental);
+ Q_UNUSED(incremental)
QWebPage::FindFlags options = QWebPage::FindWrapsAroundDocument;
if (findFlags & Find::IFindSupport::FindBackward)
options |= QWebPage::FindBackward;
diff --git a/src/plugins/help/helpindexfilter.cpp b/src/plugins/help/helpindexfilter.cpp
index f14af4c35a..47d1bbcdc0 100644
--- a/src/plugins/help/helpindexfilter.cpp
+++ b/src/plugins/help/helpindexfilter.cpp
@@ -106,6 +106,6 @@ void HelpIndexFilter::accept(FilterEntry selection) const
void HelpIndexFilter::refresh(QFutureInterface<void> &future)
{
- Q_UNUSED(future);
+ Q_UNUSED(future)
// Nothing to refresh
}
diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp
index b88fca5181..a110130675 100644
--- a/src/plugins/help/helpplugin.cpp
+++ b/src/plugins/help/helpplugin.cpp
@@ -135,8 +135,8 @@ HelpPlugin::~HelpPlugin()
bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
{
- Q_UNUSED(arguments);
- Q_UNUSED(error);
+ Q_UNUSED(arguments)
+ Q_UNUSED(error)
m_core = Core::ICore::instance();
QList<int> globalcontext;
globalcontext << Core::Constants::C_GLOBAL_ID;
diff --git a/src/plugins/perforce/perforceplugin.cpp b/src/plugins/perforce/perforceplugin.cpp
index a4f131a75e..4dfb5ea508 100644
--- a/src/plugins/perforce/perforceplugin.cpp
+++ b/src/plugins/perforce/perforceplugin.cpp
@@ -206,8 +206,8 @@ static const VCSBase::VCSBaseSubmitEditorParameters submitParameters = {
bool PerforcePlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
- Q_UNUSED(arguments);
- Q_UNUSED(errorMessage);
+ Q_UNUSED(arguments)
+ Q_UNUSED(errorMessage)
typedef VCSBase::VCSEditorFactory<PerforceEditor> PerforceEditorFactory;
typedef VCSBase::VCSSubmitEditorFactory<PerforceSubmitEditor> PerforceSubmitEditorFactory;
diff --git a/src/plugins/projectexplorer/allprojectsfilter.cpp b/src/plugins/projectexplorer/allprojectsfilter.cpp
index a909f88b76..6ff70ac5f6 100644
--- a/src/plugins/projectexplorer/allprojectsfilter.cpp
+++ b/src/plugins/projectexplorer/allprojectsfilter.cpp
@@ -70,6 +70,6 @@ void AllProjectsFilter::updateFiles()
void AllProjectsFilter::refresh(QFutureInterface<void> &future)
{
- Q_UNUSED(future);
+ Q_UNUSED(future)
QMetaObject::invokeMethod(this, "markFilesAsOutOfDate", Qt::BlockingQueuedConnection);
}
diff --git a/src/plugins/projectexplorer/applicationrunconfiguration.cpp b/src/plugins/projectexplorer/applicationrunconfiguration.cpp
index b881b944f7..cec6bf9cc9 100644
--- a/src/plugins/projectexplorer/applicationrunconfiguration.cpp
+++ b/src/plugins/projectexplorer/applicationrunconfiguration.cpp
@@ -101,7 +101,7 @@ RunControl *ApplicationRunConfigurationRunner::run(QSharedPointer<RunConfigurati
QWidget *ApplicationRunConfigurationRunner::configurationWidget(QSharedPointer<RunConfiguration> runConfiguration)
{
- Q_UNUSED(runConfiguration);
+ Q_UNUSED(runConfiguration)
return new QLabel("TODO add Configuration widget");
}
diff --git a/src/plugins/projectexplorer/buildparserfactory.cpp b/src/plugins/projectexplorer/buildparserfactory.cpp
index 3d45d5b08e..1ab98d632a 100644
--- a/src/plugins/projectexplorer/buildparserfactory.cpp
+++ b/src/plugins/projectexplorer/buildparserfactory.cpp
@@ -46,7 +46,7 @@ bool GccParserFactory::canCreate(const QString & name) const
ProjectExplorer::BuildParserInterface * GccParserFactory::create(const QString & name) const
{
- Q_UNUSED(name);
+ Q_UNUSED(name)
return new GccParser();
}
@@ -61,6 +61,6 @@ bool MsvcParserFactory::canCreate(const QString & name) const
ProjectExplorer::BuildParserInterface * MsvcParserFactory::create(const QString & name) const
{
- Q_UNUSED(name);
+ Q_UNUSED(name)
return new MsvcParser();
}
diff --git a/src/plugins/projectexplorer/currentprojectfilter.cpp b/src/plugins/projectexplorer/currentprojectfilter.cpp
index 01d98d45b6..7b60eddcc1 100644
--- a/src/plugins/projectexplorer/currentprojectfilter.cpp
+++ b/src/plugins/projectexplorer/currentprojectfilter.cpp
@@ -87,6 +87,6 @@ void CurrentProjectFilter::currentProjectChanged(ProjectExplorer::Project *proje
void CurrentProjectFilter::refresh(QFutureInterface<void> &future)
{
- Q_UNUSED(future);
+ Q_UNUSED(future)
QMetaObject::invokeMethod(this, "markFilesAsOutOfDate", Qt::BlockingQueuedConnection);
}
diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
index ff3a5c0e67..97de117817 100644
--- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
+++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
@@ -58,8 +58,8 @@ public:
}
virtual bool validatePath(const QString &path, QString *errorMessage = 0)
{
- Q_UNUSED(path);
- Q_UNUSED(errorMessage);
+ Q_UNUSED(path)
+ Q_UNUSED(errorMessage)
return true;
}
};
diff --git a/src/plugins/projectexplorer/environmenteditmodel.cpp b/src/plugins/projectexplorer/environmenteditmodel.cpp
index 53fafa3011..4275a6c356 100644
--- a/src/plugins/projectexplorer/environmenteditmodel.cpp
+++ b/src/plugins/projectexplorer/environmenteditmodel.cpp
@@ -91,7 +91,7 @@ int EnvironmentModel::rowCount(const QModelIndex &parent) const
}
int EnvironmentModel::columnCount(const QModelIndex &parent) const
{
- Q_UNUSED(parent);
+ Q_UNUSED(parent)
return 2;
}
@@ -150,7 +150,7 @@ QVariant EnvironmentModel::data(const QModelIndex &index, int role) const
Qt::ItemFlags EnvironmentModel::flags(const QModelIndex &index) const
{
- Q_UNUSED(index);
+ Q_UNUSED(index)
return Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsEnabled;
}
@@ -178,7 +178,7 @@ QModelIndex EnvironmentModel::index(int row, int column, const QModelIndex &pare
QModelIndex EnvironmentModel::parent(const QModelIndex &index) const
{
- Q_UNUSED(index);
+ Q_UNUSED(index)
return QModelIndex();
}
diff --git a/src/plugins/projectexplorer/msvcparser.cpp b/src/plugins/projectexplorer/msvcparser.cpp
index 502db0217b..9daeb50a9c 100644
--- a/src/plugins/projectexplorer/msvcparser.cpp
+++ b/src/plugins/projectexplorer/msvcparser.cpp
@@ -49,7 +49,7 @@ QString MsvcParser::name() const
void MsvcParser::stdError(const QString & line)
{
- Q_UNUSED(line);
+ Q_UNUSED(line)
//do nothing
}
diff --git a/src/plugins/projectexplorer/processstep.cpp b/src/plugins/projectexplorer/processstep.cpp
index 6ab35269cf..6e0fc3d040 100644
--- a/src/plugins/projectexplorer/processstep.cpp
+++ b/src/plugins/projectexplorer/processstep.cpp
@@ -109,7 +109,7 @@ bool ProcessStepFactory::canCreate(const QString &name) const
BuildStep *ProcessStepFactory::create(Project *pro, const QString &name) const
{
- Q_UNUSED(name);
+ Q_UNUSED(name)
return new ProcessStep(pro);
}
@@ -120,7 +120,7 @@ QStringList ProcessStepFactory::canCreateForProject(Project *pro) const
}
QString ProcessStepFactory::displayNameForName(const QString &name) const
{
- Q_UNUSED(name);
+ Q_UNUSED(name)
return "Custom Process Step";
}
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index d1ee477275..e2cf36bd24 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -151,8 +151,8 @@ ProjectExplorerPlugin *ProjectExplorerPlugin::instance()
bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *error)
{
- Q_UNUSED(arguments);
- Q_UNUSED(error);
+ Q_UNUSED(arguments)
+ Q_UNUSED(error)
Core::ICore *core = Core::ICore::instance();
Core::ActionManager *am = core->actionManager();
@@ -1149,7 +1149,7 @@ void ProjectExplorerPlugin::buildStateChanged(Project * pro)
qDebug() << "buildStateChanged";
qDebug() << pro->file()->fileName() << "isBuilding()" << m_buildManager->isBuilding(pro);
}
- Q_UNUSED(pro);
+ Q_UNUSED(pro)
updateActions();
}
diff --git a/src/plugins/projectexplorer/projectmodels.cpp b/src/plugins/projectexplorer/projectmodels.cpp
index 8ab593efd2..53b4c6e79f 100644
--- a/src/plugins/projectexplorer/projectmodels.cpp
+++ b/src/plugins/projectexplorer/projectmodels.cpp
@@ -296,7 +296,7 @@ int DetailedModel::rowCount(const QModelIndex & parent) const
int DetailedModel::columnCount(const QModelIndex &parent) const
{
- Q_UNUSED(parent);
+ Q_UNUSED(parent)
return 1;
}
@@ -363,7 +363,7 @@ void DetailedModel::reset()
void DetailedModel::foldersAboutToBeAdded(FolderNode *parentFolder,
const QList<FolderNode*> &newFolders)
{
- Q_UNUSED(newFolders);
+ Q_UNUSED(newFolders)
Q_ASSERT(parentFolder);
if (m_childNodes.contains(parentFolder))
@@ -411,7 +411,7 @@ void DetailedModel::foldersAboutToBeRemoved(FolderNode *parentFolder,
void DetailedModel::filesAboutToBeAdded(FolderNode *parentFolder,
const QList<FileNode*> &newFiles)
{
- Q_UNUSED(newFiles);
+ Q_UNUSED(newFiles)
Q_ASSERT(parentFolder);
if (m_childNodes.contains(parentFolder))
diff --git a/src/plugins/projectexplorer/sessiondialog.cpp b/src/plugins/projectexplorer/sessiondialog.cpp
index 5db31e343e..7ef8d63fd4 100644
--- a/src/plugins/projectexplorer/sessiondialog.cpp
+++ b/src/plugins/projectexplorer/sessiondialog.cpp
@@ -56,7 +56,7 @@ SessionValidator::SessionValidator(QObject *parent, QStringList sessions)
QValidator::State SessionValidator::validate(QString &input, int &pos) const
{
- Q_UNUSED(pos);
+ Q_UNUSED(pos)
if (m_sessions.contains(input))
return QValidator::Intermediate;
else
diff --git a/src/plugins/projectexplorer/taskwindow.cpp b/src/plugins/projectexplorer/taskwindow.cpp
index 5c050027f2..9f3780d9a9 100644
--- a/src/plugins/projectexplorer/taskwindow.cpp
+++ b/src/plugins/projectexplorer/taskwindow.cpp
@@ -110,7 +110,7 @@ TaskView::~TaskView()
void TaskView::resizeEvent(QResizeEvent *e)
{
- Q_UNUSED(e);
+ Q_UNUSED(e)
static_cast<TaskDelegate *>(itemDelegate())->emitSizeHintChanged(selectionModel()->currentIndex());
}
@@ -179,7 +179,7 @@ QModelIndex TaskModel::index(int row, int column, const QModelIndex &parent) con
QModelIndex TaskModel::parent(const QModelIndex &child) const
{
- Q_UNUSED(child);
+ Q_UNUSED(child)
return QModelIndex();
}
diff --git a/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp b/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp
index a5fe42deee..121ce73645 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp
@@ -162,13 +162,13 @@ QList<ProjectExplorer::ProjectNode::ProjectAction> QmlProjectNode::supportedActi
bool QmlProjectNode::addSubProjects(const QStringList &proFilePaths)
{
- Q_UNUSED(proFilePaths);
+ Q_UNUSED(proFilePaths)
return false;
}
bool QmlProjectNode::removeSubProjects(const QStringList &proFilePaths)
{
- Q_UNUSED(proFilePaths);
+ Q_UNUSED(proFilePaths)
return false;
}
@@ -212,17 +212,17 @@ bool QmlProjectNode::addFiles(const ProjectExplorer::FileType,
bool QmlProjectNode::removeFiles(const ProjectExplorer::FileType fileType,
const QStringList &filePaths, QStringList *notRemoved)
{
- Q_UNUSED(fileType);
- Q_UNUSED(filePaths);
- Q_UNUSED(notRemoved);
+ Q_UNUSED(fileType)
+ Q_UNUSED(filePaths)
+ Q_UNUSED(notRemoved)
return false;
}
bool QmlProjectNode::renameFile(const ProjectExplorer::FileType fileType,
const QString &filePath, const QString &newFilePath)
{
- Q_UNUSED(fileType);
- Q_UNUSED(filePath);
- Q_UNUSED(newFilePath);
+ Q_UNUSED(fileType)
+ Q_UNUSED(filePath)
+ Q_UNUSED(newFilePath)
return false;
}
diff --git a/src/plugins/qt4projectmanager/deployhelper.cpp b/src/plugins/qt4projectmanager/deployhelper.cpp
index 639da61fc0..4603230d45 100644
--- a/src/plugins/qt4projectmanager/deployhelper.cpp
+++ b/src/plugins/qt4projectmanager/deployhelper.cpp
@@ -50,7 +50,7 @@ DeployHelperRunStep::DeployHelperRunStep(Qt4Project *pro)
bool DeployHelperRunStep::init(const QString &configuration)
{
- Q_UNUSED(configuration);
+ Q_UNUSED(configuration)
m_qtdir = m_pro->qtDir(configuration);
QFileInfo fi(m_pro->file()->fileName());
m_appdir = fi.absolutePath();
diff --git a/src/plugins/qt4projectmanager/embeddedpropertiespage.cpp b/src/plugins/qt4projectmanager/embeddedpropertiespage.cpp
index 4a85cf6538..baf7819292 100644
--- a/src/plugins/qt4projectmanager/embeddedpropertiespage.cpp
+++ b/src/plugins/qt4projectmanager/embeddedpropertiespage.cpp
@@ -49,7 +49,7 @@ bool EmbeddedPropertiesPanelFactory::supports(Project *project)
return true;
}
#else
- Q_UNUSED(project);
+ Q_UNUSED(project)
#endif
return false;
}
diff --git a/src/plugins/qt4projectmanager/makestep.cpp b/src/plugins/qt4projectmanager/makestep.cpp
index 5cffd00a1b..2b3d7aadd4 100644
--- a/src/plugins/qt4projectmanager/makestep.cpp
+++ b/src/plugins/qt4projectmanager/makestep.cpp
@@ -229,7 +229,7 @@ bool MakeStepFactory::canCreate(const QString & name) const
ProjectExplorer::BuildStep * MakeStepFactory::create(ProjectExplorer::Project * pro, const QString & name) const
{
- Q_UNUSED(name);
+ Q_UNUSED(name)
return new MakeStep(static_cast<Qt4Project *>(pro));
}
@@ -241,6 +241,6 @@ QStringList MakeStepFactory::canCreateForProject(ProjectExplorer::Project *pro)
QString MakeStepFactory::displayNameForName(const QString &name) const
{
- Q_UNUSED(name);
+ Q_UNUSED(name)
return QString();
}
diff --git a/src/plugins/qt4projectmanager/profilereader.cpp b/src/plugins/qt4projectmanager/profilereader.cpp
index 5bef6ecd6c..c264c8b521 100644
--- a/src/plugins/qt4projectmanager/profilereader.cpp
+++ b/src/plugins/qt4projectmanager/profilereader.cpp
@@ -109,13 +109,13 @@ QString ProFileReader::value(const QString &variable) const
void ProFileReader::fileMessage(const QString &message)
{
- Q_UNUSED(message);
+ Q_UNUSED(message)
// we ignore these...
}
void ProFileReader::logMessage(const QString &message)
{
- Q_UNUSED(message);
+ Q_UNUSED(message)
// we ignore these...
}
diff --git a/src/plugins/qt4projectmanager/qmakestep.cpp b/src/plugins/qt4projectmanager/qmakestep.cpp
index 84f8b6652f..8ce0cef56a 100644
--- a/src/plugins/qt4projectmanager/qmakestep.cpp
+++ b/src/plugins/qt4projectmanager/qmakestep.cpp
@@ -287,7 +287,7 @@ bool QMakeStepFactory::canCreate(const QString & name) const
ProjectExplorer::BuildStep * QMakeStepFactory::create(ProjectExplorer::Project * pro, const QString & name) const
{
- Q_UNUSED(name);
+ Q_UNUSED(name)
return new QMakeStep(static_cast<Qt4Project *>(pro));
}
@@ -299,7 +299,7 @@ QStringList QMakeStepFactory::canCreateForProject(ProjectExplorer::Project *pro)
QString QMakeStepFactory::displayNameForName(const QString &name) const
{
- Q_UNUSED(name);
+ Q_UNUSED(name)
return QString();
}
diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp
index e8b3de8296..6c6947887c 100644
--- a/src/plugins/qt4projectmanager/qt4nodes.cpp
+++ b/src/plugins/qt4projectmanager/qt4nodes.cpp
@@ -226,13 +226,13 @@ QList<ProjectNode::ProjectAction> Qt4PriFileNode::supportedActions() const
bool Qt4PriFileNode::addSubProjects(const QStringList &proFilePaths)
{
- Q_UNUSED(proFilePaths);
+ Q_UNUSED(proFilePaths)
return false; //changeIncludes(m_includeFile, proFilePaths, AddToProFile);
}
bool Qt4PriFileNode::removeSubProjects(const QStringList &proFilePaths)
{
- Q_UNUSED(proFilePaths);
+ Q_UNUSED(proFilePaths)
return false; //changeIncludes(m_includeFile, proFilePaths, RemoveFromProFile);
}
@@ -279,9 +279,9 @@ bool Qt4PriFileNode::renameFile(const FileType fileType, const QString &filePath
bool Qt4PriFileNode::changeIncludes(ProFile *includeFile, const QStringList &proFilePaths,
ChangeType change)
{
- Q_UNUSED(includeFile);
- Q_UNUSED(proFilePaths);
- Q_UNUSED(change);
+ Q_UNUSED(includeFile)
+ Q_UNUSED(proFilePaths)
+ Q_UNUSED(change)
// TODO
return false;
}
diff --git a/src/plugins/qt4projectmanager/qt4project.cpp b/src/plugins/qt4projectmanager/qt4project.cpp
index bff11da668..1e3d7acdb2 100644
--- a/src/plugins/qt4projectmanager/qt4project.cpp
+++ b/src/plugins/qt4projectmanager/qt4project.cpp
@@ -718,7 +718,7 @@ void Qt4Project::addDefaultBuild()
void Qt4Project::newBuildConfiguration(const QString &buildConfiguration)
{
- Q_UNUSED(buildConfiguration);
+ Q_UNUSED(buildConfiguration)
}
void Qt4Project::proFileParseError(const QString &errorMessage)
diff --git a/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp b/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp
index d4e8b96e9d..f740c27756 100644
--- a/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp
+++ b/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp
@@ -97,7 +97,7 @@ static Core::Command *createSeparator(Core::ActionManager *am,
bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
- Q_UNUSED(arguments);
+ Q_UNUSED(arguments)
Core::ICore *core = Core::ICore::instance();
if (!core->mimeDatabase()->addMimeTypes(QLatin1String(":qt4projectmanager/Qt4ProjectManager.mimetypes.xml"), errorMessage))
diff --git a/src/plugins/qt4projectmanager/wizards/librarywizard.cpp b/src/plugins/qt4projectmanager/wizards/librarywizard.cpp
index 9707f9dd43..03cb54d3b2 100644
--- a/src/plugins/qt4projectmanager/wizards/librarywizard.cpp
+++ b/src/plugins/qt4projectmanager/wizards/librarywizard.cpp
@@ -69,7 +69,7 @@ QWizard *LibraryWizard::createWizardDialog(QWidget *parent,
Core::GeneratedFiles LibraryWizard::generateFiles(const QWizard *w,
QString *errorMessage) const
{
- Q_UNUSED(errorMessage);
+ Q_UNUSED(errorMessage)
const LibraryWizardDialog *dialog = qobject_cast<const LibraryWizardDialog *>(w);
const QtProjectParameters projectParams = dialog->parameters();
const QString projectPath = projectParams.projectPath();
diff --git a/src/plugins/qtestlib/qtestlibplugin.cpp b/src/plugins/qtestlib/qtestlibplugin.cpp
index 315b36537e..8fa5072b03 100644
--- a/src/plugins/qtestlib/qtestlibplugin.cpp
+++ b/src/plugins/qtestlib/qtestlibplugin.cpp
@@ -125,8 +125,8 @@ QTestLibPlugin::~QTestLibPlugin()
bool QTestLibPlugin::init(const QStringList &arguments, QString *errorMessage)
{
- Q_UNUSED(arguments);
- Q_UNUSED(errorMessage);
+ Q_UNUSED(arguments)
+ Q_UNUSED(errorMessage)
m_projectExplorer = ProjectExplorer::ProjectExplorerPlugin::instance();
connect(m_projectExplorer, SIGNAL(aboutToExecuteProject(ProjectExplorer::Project *)),
this, SLOT(projectRunHook(ProjectExplorer::Project *)));
diff --git a/src/plugins/quickopen/filesystemfilter.cpp b/src/plugins/quickopen/filesystemfilter.cpp
index 88f0f778b8..55abc390fb 100644
--- a/src/plugins/quickopen/filesystemfilter.cpp
+++ b/src/plugins/quickopen/filesystemfilter.cpp
@@ -104,7 +104,7 @@ void FileSystemFilter::accept(FilterEntry selection) const
bool FileSystemFilter::openConfigDialog(QWidget *parent, bool &needsRefresh)
{
- Q_UNUSED(needsRefresh);
+ Q_UNUSED(needsRefresh)
Ui::FileSystemFilterOptions ui;
QDialog dialog(parent);
ui.setupUi(&dialog);
diff --git a/src/plugins/quickopen/iquickopenfilter.cpp b/src/plugins/quickopen/iquickopenfilter.cpp
index b4a2319e36..7ea64dd48c 100644
--- a/src/plugins/quickopen/iquickopenfilter.cpp
+++ b/src/plugins/quickopen/iquickopenfilter.cpp
@@ -80,7 +80,7 @@ bool IQuickOpenFilter::restoreState(const QByteArray &state)
bool IQuickOpenFilter::openConfigDialog(QWidget *parent, bool &needsRefresh)
{
- Q_UNUSED(needsRefresh);
+ Q_UNUSED(needsRefresh)
QDialog dialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint);
dialog.setWindowTitle(tr("Filter Configuration"));
diff --git a/src/plugins/quickopen/opendocumentsfilter.cpp b/src/plugins/quickopen/opendocumentsfilter.cpp
index 179647cad3..aaf2b98057 100644
--- a/src/plugins/quickopen/opendocumentsfilter.cpp
+++ b/src/plugins/quickopen/opendocumentsfilter.cpp
@@ -82,7 +82,7 @@ void OpenDocumentsFilter::refreshInternally()
void OpenDocumentsFilter::refresh(QFutureInterface<void> &future)
{
- Q_UNUSED(future);
+ Q_UNUSED(future)
QMetaObject::invokeMethod(this, "refreshInternally", Qt::BlockingQueuedConnection);
}
diff --git a/src/plugins/quickopen/quickopenfiltersfilter.cpp b/src/plugins/quickopen/quickopenfiltersfilter.cpp
index 9adc40b4b9..5f3701fb68 100644
--- a/src/plugins/quickopen/quickopenfiltersfilter.cpp
+++ b/src/plugins/quickopen/quickopenfiltersfilter.cpp
@@ -91,7 +91,7 @@ void QuickOpenFiltersFilter::accept(FilterEntry selection) const
void QuickOpenFiltersFilter::refresh(QFutureInterface<void> &future)
{
- Q_UNUSED(future);
+ Q_UNUSED(future)
// Nothing to refresh
}
diff --git a/src/plugins/regexp/regexpplugin.cpp b/src/plugins/regexp/regexpplugin.cpp
index 5e2ef0d9a1..e77c1edae8 100644
--- a/src/plugins/regexp/regexpplugin.cpp
+++ b/src/plugins/regexp/regexpplugin.cpp
@@ -56,7 +56,7 @@ void RegExpPlugin::extensionsInitialized()
bool RegExpPlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
- Q_UNUSED(arguments);
+ Q_UNUSED(arguments)
Q_UNUSED(errorMessage)
Core::ICore *core = Core::ICore::instance();
m_regexpWindow = new RegExpWindow;
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp
index b14fb3f9a3..125e25209f 100644
--- a/src/plugins/resourceeditor/resourceeditorplugin.cpp
+++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp
@@ -65,7 +65,7 @@ ResourceEditorPlugin::~ResourceEditorPlugin()
bool ResourceEditorPlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
- Q_UNUSED(arguments);
+ Q_UNUSED(arguments)
Core::ICore *core = Core::ICore::instance();
if (!core->mimeDatabase()->addMimeTypes(QLatin1String(":/resourceeditor/ResourceEditor.mimetypes.xml"), errorMessage))
return false;
diff --git a/src/plugins/resourceeditor/resourcewizard.cpp b/src/plugins/resourceeditor/resourcewizard.cpp
index e07845106c..6bb0786936 100644
--- a/src/plugins/resourceeditor/resourcewizard.cpp
+++ b/src/plugins/resourceeditor/resourcewizard.cpp
@@ -44,7 +44,7 @@ ResourceWizard::generateFilesFromPath(const QString &path,
const QString &name,
QString *errorMessage) const
{
- Q_UNUSED(errorMessage);
+ Q_UNUSED(errorMessage)
const QString suffix = preferredSuffix(QLatin1String(Constants::C_RESOURCE_MIMETYPE));
const QString fileName = Core::BaseFileWizard::buildFileName(path, name, suffix);
Core::GeneratedFile file(fileName);
diff --git a/src/plugins/snippets/snippetsplugin.cpp b/src/plugins/snippets/snippetsplugin.cpp
index eb26903dff..a237e779f3 100644
--- a/src/plugins/snippets/snippetsplugin.cpp
+++ b/src/plugins/snippets/snippetsplugin.cpp
@@ -69,7 +69,7 @@ void SnippetsPlugin::extensionsInitialized()
bool SnippetsPlugin::initialize(const QStringList &arguments, QString *)
{
- Q_UNUSED(arguments);
+ Q_UNUSED(arguments)
Core::ICore *core = Core::ICore::instance();
Core::ActionManager *am = core->actionManager();
diff --git a/src/plugins/snippets/snippetswindow.cpp b/src/plugins/snippets/snippetswindow.cpp
index 3139f3c237..d76b1991fc 100644
--- a/src/plugins/snippets/snippetswindow.cpp
+++ b/src/plugins/snippets/snippetswindow.cpp
@@ -112,7 +112,7 @@ void SnippetsWindow::activateSnippet(QTreeWidgetItem *item, int column)
insertSnippet(editor, spec);
}
- Q_UNUSED(column);
+ Q_UNUSED(column)
}
const QList<SnippetSpec *> &SnippetsWindow::snippets() const
diff --git a/src/plugins/subversion/subversionplugin.cpp b/src/plugins/subversion/subversionplugin.cpp
index a9101e4d90..1a6bc88698 100644
--- a/src/plugins/subversion/subversionplugin.cpp
+++ b/src/plugins/subversion/subversionplugin.cpp
@@ -274,7 +274,7 @@ static inline Core::Command *createSeparator(QObject *parent,
bool SubversionPlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
- Q_UNUSED(arguments);
+ Q_UNUSED(arguments)
typedef VCSBase::VCSSubmitEditorFactory<SubversionSubmitEditor> SubversionSubmitEditorFactory;
typedef VCSBase::VCSEditorFactory<SubversionEditor> SubversionEditorFactory;
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index 6419f553b7..4fcd94e2af 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -548,7 +548,7 @@ void BaseTextEditor::selectEncoding()
void DocumentMarker::updateMark(ITextMark *mark)
{
- Q_UNUSED(mark);
+ Q_UNUSED(mark)
TextEditDocumentLayout *documentLayout = qobject_cast<TextEditDocumentLayout*>(document->documentLayout());
QTC_ASSERT(documentLayout, return);
documentLayout->requestUpdate();
@@ -2484,8 +2484,8 @@ void BaseTextEditor::drawFoldingMarker(QPainter *painter, const QPalette &pal,
bool active,
bool hovered) const
{
- Q_UNUSED(active);
- Q_UNUSED(hovered);
+ Q_UNUSED(active)
+ Q_UNUSED(hovered)
QStyle *s = style();
if (ManhattanStyle *ms = qobject_cast<ManhattanStyle*>(s))
s = ms->systemStyle();
diff --git a/src/plugins/texteditor/completionwidget.cpp b/src/plugins/texteditor/completionwidget.cpp
index 61a0b09c7d..4d2859e8d4 100644
--- a/src/plugins/texteditor/completionwidget.cpp
+++ b/src/plugins/texteditor/completionwidget.cpp
@@ -182,7 +182,7 @@ bool CompletionWidget::event(QEvent *e)
void CompletionWidget::keyboardSearch(const QString &search)
{
- Q_UNUSED(search);
+ Q_UNUSED(search)
}
void CompletionWidget::closeList(const QModelIndex &index)
diff --git a/src/plugins/texteditor/texteditorplugin.cpp b/src/plugins/texteditor/texteditorplugin.cpp
index d7a128ca48..86ea887bc9 100644
--- a/src/plugins/texteditor/texteditorplugin.cpp
+++ b/src/plugins/texteditor/texteditorplugin.cpp
@@ -85,7 +85,7 @@ TextEditorPlugin *TextEditorPlugin::instance()
// ExtensionSystem::PluginInterface
bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
- Q_UNUSED(arguments);
+ Q_UNUSED(arguments)
if (!Core::ICore::instance()->mimeDatabase()->addMimeTypes(QLatin1String(":/texteditor/TextEditor.mimetypes.xml"), errorMessage))
return false;
diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp
index 9a2e880b35..6a869aca38 100644
--- a/src/plugins/vcsbase/vcsbaseplugin.cpp
+++ b/src/plugins/vcsbase/vcsbaseplugin.cpp
@@ -59,8 +59,8 @@ VCSBasePlugin::~VCSBasePlugin()
bool VCSBasePlugin::initialize(const QStringList &arguments, QString *errorMessage)
{
- Q_UNUSED(arguments);
- Q_UNUSED(errorMessage);
+ Q_UNUSED(arguments)
+ Q_UNUSED(errorMessage)
Core::ICore *core = Core::ICore::instance();
if (!core->mimeDatabase()->addMimeTypes(QLatin1String(":/vcsbase/VCSBase.mimetypes.xml"), errorMessage))
diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp
index 1bd8086cdb..83fbc1dd0e 100644
--- a/src/shared/cplusplus/CheckDeclaration.cpp
+++ b/src/shared/cplusplus/CheckDeclaration.cpp
@@ -227,7 +227,7 @@ bool CheckDeclaration::visit(SimpleDeclarationAST *ast)
if (it->declarator && it->declarator->initializer) {
FullySpecifiedType initTy = semantic()->check(it->declarator->initializer, _scope);
- Q_UNUSED(initTy);
+ Q_UNUSED(initTy)
}
*decl_it = new (translationUnit()->memoryPool()) List<Declaration *>();
diff --git a/src/shared/cplusplus/CheckExpression.cpp b/src/shared/cplusplus/CheckExpression.cpp
index 60bc3654ba..25cfe8ba43 100644
--- a/src/shared/cplusplus/CheckExpression.cpp
+++ b/src/shared/cplusplus/CheckExpression.cpp
@@ -213,7 +213,7 @@ bool CheckExpression::visit(NewExpressionAST *ast)
if (ast->new_placement) {
for (ExpressionListAST *it = ast->new_placement->expression_list; it; it = it->next) {
FullySpecifiedType exprTy = semantic()->check(it->expression, _scope);
- Q_UNUSED(exprTy);
+ Q_UNUSED(exprTy)
}
}
@@ -221,18 +221,18 @@ bool CheckExpression::visit(NewExpressionAST *ast)
if (ast->new_type_id) {
FullySpecifiedType ty = semantic()->check(ast->new_type_id->type_specifier, _scope);
- Q_UNUSED(ty);
+ Q_UNUSED(ty)
for (NewArrayDeclaratorAST *it = ast->new_type_id->new_array_declarators; it; it = it->next) {
FullySpecifiedType exprTy = semantic()->check(it->expression, _scope);
- Q_UNUSED(exprTy);
+ Q_UNUSED(exprTy)
}
}
// ### process new-initializer
if (ast->new_initializer) {
FullySpecifiedType exprTy = semantic()->check(ast->new_initializer->expression, _scope);
- Q_UNUSED(exprTy);
+ Q_UNUSED(exprTy)
}
return false;
diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp
index 016633006c..3dcda2a766 100644
--- a/src/shared/proparser/profileevaluator.cpp
+++ b/src/shared/proparser/profileevaluator.cpp
@@ -686,7 +686,7 @@ void ProFileEvaluator::Private::visitBeginProVariable(ProVariable *variable)
void ProFileEvaluator::Private::visitEndProVariable(ProVariable *variable)
{
- Q_UNUSED(variable);
+ Q_UNUSED(variable)
m_valuemap = m_tempValuemap;
m_filevaluemap = m_tempFilevaluemap;
m_lastVarName.clear();
diff --git a/src/shared/qrceditor/resourcefile.cpp b/src/shared/qrceditor/resourcefile.cpp
index ccec3f89ed..44467e1b97 100644
--- a/src/shared/qrceditor/resourcefile.cpp
+++ b/src/shared/qrceditor/resourcefile.cpp
@@ -787,7 +787,7 @@ QModelIndex ResourceModel::addFiles(const QModelIndex &model_idx, const QStringL
void ResourceModel::addFiles(int prefixIndex, const QStringList &fileNames, int cursorFile,
int &firstFile, int &lastFile)
{
- Q_UNUSED(cursorFile);
+ Q_UNUSED(cursorFile)
const QModelIndex prefix_model_idx = index(prefixIndex, 0, QModelIndex());
const QStringList &file_list = fileNames;
firstFile = -1;
diff --git a/src/shared/qrceditor/resourceview.cpp b/src/shared/qrceditor/resourceview.cpp
index 9c3b7f4ca1..78d7d1cfe0 100644
--- a/src/shared/qrceditor/resourceview.cpp
+++ b/src/shared/qrceditor/resourceview.cpp
@@ -205,8 +205,8 @@ ResourceView::~ResourceView()
void ResourceView::currentChanged(const QModelIndex &current, const QModelIndex &previous)
{
- Q_UNUSED(current);
- Q_UNUSED(previous);
+ Q_UNUSED(current)
+ Q_UNUSED(previous)
emit currentIndexChanged();
}
diff --git a/src/tools/qdebugger/mainwindow.cpp b/src/tools/qdebugger/mainwindow.cpp
index c9a078cfb5..320d95e21e 100644
--- a/src/tools/qdebugger/mainwindow.cpp
+++ b/src/tools/qdebugger/mainwindow.cpp
@@ -431,7 +431,7 @@ void MainWindow::resetLocation()
void MainWindow::gotoLocation(const QString &fileName, int line, bool setMarker)
{
//qDebug() << "GOTO " << fileName << line << setMarker;
- Q_UNUSED(setMarker);
+ Q_UNUSED(setMarker)
TextViewer *textViewer = findOrCreateTextViewer(fileName);
m_textViewers->setCurrentWidget(textViewer);