forked from qt-creator/qt-creator
QDS: Fix unused variable warnings
Change-Id: I3ea21d5883cb75dd2507ad3d0aa6b3e24ed8354e Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -57,7 +57,8 @@ public:
|
|||||||
Utils::SmallStringView directoryPath) override;
|
Utils::SmallStringView directoryPath) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ProjectStorage &m_storage;
|
// m_pathCache and m_storage are only used when compiled for QDS
|
||||||
PathCache &m_pathCache;
|
[[maybe_unused]] ProjectStorage &m_storage;
|
||||||
|
[[maybe_unused]] PathCache &m_pathCache;
|
||||||
};
|
};
|
||||||
} // namespace QmlDesigner
|
} // namespace QmlDesigner
|
||||||
|
@@ -57,7 +57,8 @@ public:
|
|||||||
const Storage::Synchronization::ProjectData &projectData) override;
|
const Storage::Synchronization::ProjectData &projectData) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PathCache &m_pathCache;
|
// m_pathCache and m_storage are only used when compiled for QDS
|
||||||
ProjectStorage &m_storage;
|
[[maybe_unused]] PathCache &m_pathCache;
|
||||||
|
[[maybe_unused]] ProjectStorage &m_storage;
|
||||||
};
|
};
|
||||||
} // namespace QmlDesigner
|
} // namespace QmlDesigner
|
||||||
|
@@ -88,8 +88,6 @@ static int preferedQtTarget(Target *target)
|
|||||||
return 5;
|
return 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char openInQDSAppSetting[] = "OpenInQDSApp";
|
|
||||||
|
|
||||||
Utils::FilePaths QmlProject::getUiQmlFilesForFolder(const Utils::FilePath &folder)
|
Utils::FilePaths QmlProject::getUiQmlFilesForFolder(const Utils::FilePath &folder)
|
||||||
{
|
{
|
||||||
const Utils::FilePaths uiFiles = files([&](const ProjectExplorer::Node *node) {
|
const Utils::FilePaths uiFiles = files([&](const ProjectExplorer::Node *node) {
|
||||||
|
@@ -9023,9 +9023,6 @@ void tst_TestCore::writeAnnotations()
|
|||||||
" }\n"
|
" }\n"
|
||||||
"}");
|
"}");
|
||||||
|
|
||||||
const QLatin1String metaCode("\n/*##^## Designer {\n D{i:0;x:10}D{i:1;test:true;x:10;test2:\"string\"}"
|
|
||||||
"D{i:2;test:true;x:10;test2:\"string\"}\n}\n ##^##*/\n");
|
|
||||||
|
|
||||||
QPlainTextEdit textEdit;
|
QPlainTextEdit textEdit;
|
||||||
textEdit.setPlainText(qmlCode);
|
textEdit.setPlainText(qmlCode);
|
||||||
NotIndentingTextEditModifier textModifier(&textEdit);
|
NotIndentingTextEditModifier textModifier(&textEdit);
|
||||||
|
Reference in New Issue
Block a user