Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
d3f97579
Commit
d3f97579
authored
Jul 13, 2009
by
Alessandro Portale
Browse files
Removing some unused semicolons after Q_UNUSED
There were both variants, with and without extra semicolon.
parent
f9ed6f18
Changes
81
Hide whitespace changes
Inline
Side-by-side
src/libs/extensionsystem/patchedpluginloader.cpp
View file @
d3f97579
...
...
@@ -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
}
...
...
src/libs/extensionsystem/test/manual/pluginview/plugins/plugin2/plugin2.cpp
View file @
d3f97579
...
...
@@ -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"
);
...
...
src/libs/qtconcurrent/multitask.h
View file @
d3f97579
...
...
@@ -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:
...
...
src/plugins/bineditor/bineditorplugin.cpp
View file @
d3f97579
...
...
@@ -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
))
...
...
src/plugins/cmakeprojectmanager/cmakeproject.cpp
View file @
d3f97579
...
...
@@ -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
)
...
...
src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp
View file @
d3f97579
...
...
@@ -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
;
}
src/plugins/coreplugin/coreplugin.cpp
View file @
d3f97579
...
...
@@ -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
;
...
...
src/plugins/coreplugin/dialogs/shortcutsettings.cpp
View file @
d3f97579
...
...
@@ -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
);
...
...
src/plugins/coreplugin/editormanager/openeditorsmodel.cpp
View file @
d3f97579
...
...
@@ -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
);
...
...
src/plugins/coreplugin/fancytabwidget.cpp
View file @
d3f97579
...
...
@@ -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
);
...
...
src/plugins/coreplugin/mainwindow.cpp
View file @
d3f97579
...
...
@@ -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
);
...
...
src/plugins/coreplugin/styleanimator.cpp
View file @
d3f97579
...
...
@@ -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
)
...
...
src/plugins/cpaster/cpasterplugin.cpp
View file @
d3f97579
...
...
@@ -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
;
...
...
src/plugins/cpptools/cppcurrentdocumentfilter.cpp
View file @
d3f97579
...
...
@@ -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
)
...
...
src/plugins/cpptools/cppquickopenfilter.cpp
View file @
d3f97579
...
...
@@ -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
,
...
...
src/plugins/cpptools/cpptoolsplugin.cpp
View file @
d3f97579
...
...
@@ -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
();
...
...
src/plugins/debugger/debuggeroutputwindow.cpp
View file @
d3f97579
...
...
@@ -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
);
...
...
src/plugins/debugger/debuggerrunner.cpp
View file @
d3f97579
...
...
@@ -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
;
}
...
...
src/plugins/debugger/debuggertooltip.cpp
View file @
d3f97579
...
...
@@ -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
)
...
...
src/plugins/debugger/disassemblerhandler.cpp
View file @
d3f97579
...
...
@@ -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
;
}
...
...
Prev
1
2
3
4
5
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment