Fix some warnings about unused parameters

Change-Id: I4cd941beec8a8b2d35a5b1fce48dd12facae7154
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-12-11 17:56:08 +01:00
parent 29ddb3bcdb
commit 9c2ad087da
2 changed files with 3 additions and 1 deletions

View File

@@ -698,6 +698,8 @@ FileApiQtcData generateFallbackData(const FilePath &topCmakeFile,
const FilePath &buildDirectory,
QString errorMessage)
{
Q_UNUSED(buildDirectory)
FileApiQtcData result;
result.rootProjectNode.reset(new CMakeProjectNode{sourceDirectory});

View File

@@ -135,7 +135,7 @@ EditorView::EditorView(SplitterOrView *parentSplitterOrView, QWidget *parent) :
m_container->addWidget(empty);
m_widgetEditorMap.insert(empty, nullptr);
auto dropSupport = new DropSupport(this, [this](QDropEvent *event, DropSupport *dropSupport) -> bool {
const auto dropSupport = new DropSupport(this, [this](QDropEvent *event, DropSupport *) {
// do not accept move events except from other editor views (i.e. their tool bars)
// otherwise e.g. item views that support moving items within themselves would
// also "move" the item into the editor view, i.e. the item would be removed from the