forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -61,13 +61,6 @@ namespace CompilationDatabaseProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
namespace {
|
||||
class DBProjectNode : public ProjectNode
|
||||
{
|
||||
public:
|
||||
explicit DBProjectNode(const Utils::FileName &projectFilePath)
|
||||
: ProjectNode(projectFilePath)
|
||||
{}
|
||||
};
|
||||
|
||||
QStringList jsonObjectFlags(const QJsonObject &object)
|
||||
{
|
||||
@@ -356,7 +349,7 @@ void CompilationDatabaseProject::buildTreeAndProjectParts(const Utils::FileName
|
||||
return;
|
||||
}
|
||||
|
||||
auto root = std::make_unique<DBProjectNode>(projectDirectory());
|
||||
auto root = std::make_unique<ProjectNode>(projectDirectory());
|
||||
|
||||
CppTools::KitInfo kitInfo(this);
|
||||
QTC_ASSERT(kitInfo.isValid(), return);
|
||||
|
||||
Reference in New Issue
Block a user