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:
@@ -138,7 +138,7 @@ void DescriptionEditorWidget::setDisplaySettings(const DisplaySettings &ds)
|
||||
|
||||
void DescriptionEditorWidget::setMarginSettings(const MarginSettings &ms)
|
||||
{
|
||||
Q_UNUSED(ms);
|
||||
Q_UNUSED(ms)
|
||||
TextEditorWidget::setMarginSettings(MarginSettings());
|
||||
}
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ bool DiffEditorDocument::ignoreWhitespace() const
|
||||
|
||||
bool DiffEditorDocument::setContents(const QByteArray &contents)
|
||||
{
|
||||
Q_UNUSED(contents);
|
||||
Q_UNUSED(contents)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ void UnifiedView::setCurrentDiffFileIndex(int index)
|
||||
|
||||
void UnifiedView::setSync(bool sync)
|
||||
{
|
||||
Q_UNUSED(sync);
|
||||
Q_UNUSED(sync)
|
||||
}
|
||||
|
||||
SideBySideView::SideBySideView()
|
||||
|
||||
Reference in New Issue
Block a user