aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-02-25 18:35:34 +0100
committerhjk <hjk@qt.io>2019-02-26 10:41:50 +0000
commit4d2981b1f4c9620584a5d2d1063715dfaee31fe5 (patch)
tree2bddc182d0ed17f98a472da9edb3db8d211f9f3a /src/plugins/qmlprofiler
parent65be7c2915969d9491bf75216c1a2b355be72207 (diff)
ProjectExplorer: Un-protect ProjectNode constructor
Not much protection needed, and not provided either, as seen in the removed workarounds. Change-Id: Ib33f6481cdb04481c0324bdeb57eb50143ecb62f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r--src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp b/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp
index 7ba3b02cdb1..0f07737f5c6 100644
--- a/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp
+++ b/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp
@@ -41,13 +41,6 @@
namespace QmlProfiler {
namespace Internal {
-class DummyProjectNode : public ProjectExplorer::ProjectNode
-{
-public:
- DummyProjectNode(const Utils::FileName &file) : ProjectExplorer::ProjectNode(file)
- {}
-};
-
class DummyProject : public ProjectExplorer::Project
{
Q_OBJECT
@@ -57,7 +50,7 @@ public:
{
auto fileNode
= std::make_unique<ProjectExplorer::FileNode>(file, ProjectExplorer::FileType::Source);
- auto root = std::make_unique<DummyProjectNode>(file);
+ auto root = std::make_unique<ProjectExplorer::ProjectNode>(file);
root->addNode(std::move(fileNode));
fileNode = std::make_unique<ProjectExplorer::FileNode>(
Utils::FileName::fromLatin1(