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;
|
||||
|
||||
private:
|
||||
ProjectStorage &m_storage;
|
||||
PathCache &m_pathCache;
|
||||
// m_pathCache and m_storage are only used when compiled for QDS
|
||||
[[maybe_unused]] ProjectStorage &m_storage;
|
||||
[[maybe_unused]] PathCache &m_pathCache;
|
||||
};
|
||||
} // namespace QmlDesigner
|
||||
|
@@ -57,7 +57,8 @@ public:
|
||||
const Storage::Synchronization::ProjectData &projectData) override;
|
||||
|
||||
private:
|
||||
PathCache &m_pathCache;
|
||||
ProjectStorage &m_storage;
|
||||
// m_pathCache and m_storage are only used when compiled for QDS
|
||||
[[maybe_unused]] PathCache &m_pathCache;
|
||||
[[maybe_unused]] ProjectStorage &m_storage;
|
||||
};
|
||||
} // namespace QmlDesigner
|
||||
|
@@ -88,8 +88,6 @@ static int preferedQtTarget(Target *target)
|
||||
return 5;
|
||||
}
|
||||
|
||||
const char openInQDSAppSetting[] = "OpenInQDSApp";
|
||||
|
||||
Utils::FilePaths QmlProject::getUiQmlFilesForFolder(const Utils::FilePath &folder)
|
||||
{
|
||||
const Utils::FilePaths uiFiles = files([&](const ProjectExplorer::Node *node) {
|
||||
|
@@ -9023,9 +9023,6 @@ void tst_TestCore::writeAnnotations()
|
||||
" }\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;
|
||||
textEdit.setPlainText(qmlCode);
|
||||
NotIndentingTextEditModifier textModifier(&textEdit);
|
||||
|
Reference in New Issue
Block a user