forked from qt-creator/qt-creator
Avoid warning on empty expressions
For some reason, Q_UNUSED includes already a semicolon, adding one on the user side creates an additional empty statement. Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -389,7 +389,7 @@ void QbsBuildStep::handleProgress(int value)
|
||||
|
||||
void QbsBuildStep::handleCommandDescriptionReport(const QString &highlight, const QString &message)
|
||||
{
|
||||
Q_UNUSED(highlight);
|
||||
Q_UNUSED(highlight)
|
||||
emit addOutput(message, OutputFormat::Stdout);
|
||||
}
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ void QbsCleanStep::cleaningDone(bool success)
|
||||
|
||||
void QbsCleanStep::handleTaskStarted(const QString &desciption, int max)
|
||||
{
|
||||
Q_UNUSED(desciption);
|
||||
Q_UNUSED(desciption)
|
||||
m_maxProgress = max;
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ void QbsLogSink::doPrintWarning(const qbs::ErrorInfo &warning)
|
||||
|
||||
void QbsLogSink::doPrintMessage(qbs::LoggerLevel level, const QString &message, const QString &tag)
|
||||
{
|
||||
Q_UNUSED(tag);
|
||||
Q_UNUSED(tag)
|
||||
|
||||
{
|
||||
QMutexLocker l(&m_mutex);
|
||||
|
||||
@@ -104,8 +104,8 @@ QbsProjectManagerPlugin::~QbsProjectManagerPlugin()
|
||||
|
||||
bool QbsProjectManagerPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
{
|
||||
Q_UNUSED(arguments);
|
||||
Q_UNUSED(errorMessage);
|
||||
Q_UNUSED(arguments)
|
||||
Q_UNUSED(errorMessage)
|
||||
|
||||
d = new QbsProjectManagerPluginPrivate;
|
||||
|
||||
|
||||
@@ -187,7 +187,7 @@ void QbsProjectParser::handleQbsParsingProgress(int progress)
|
||||
|
||||
void QbsProjectParser::handleQbsParsingTaskSetup(const QString &description, int maximumProgressValue)
|
||||
{
|
||||
Q_UNUSED(description);
|
||||
Q_UNUSED(description)
|
||||
if (m_fi) {
|
||||
m_currentProgressBase = m_fi->progressValue();
|
||||
m_fi->setProgressRange(0, m_currentProgressBase + maximumProgressValue);
|
||||
|
||||
Reference in New Issue
Block a user