forked from qt-creator/qt-creator
QmakeProjectManager: Modernize
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-equals-default Change-Id: I7642992eee6838bb2566921de87390c1771ebcbe Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
02d46e6c2c
commit
cd5066d86b
@@ -76,7 +76,7 @@ namespace Internal {
|
||||
class QmakeProjectManagerPluginPrivate : public QObject
|
||||
{
|
||||
public:
|
||||
~QmakeProjectManagerPluginPrivate();
|
||||
~QmakeProjectManagerPluginPrivate() override;
|
||||
|
||||
void projectChanged();
|
||||
void activeTargetChanged();
|
||||
@@ -371,10 +371,10 @@ void QmakeProjectManagerPluginPrivate::updateContextActions()
|
||||
Project *project = ProjectTree::currentProject();
|
||||
|
||||
const ContainerNode *containerNode = node ? node->asContainerNode() : nullptr;
|
||||
const QmakeProFileNode *proFileNode = dynamic_cast<const QmakeProFileNode *>(containerNode ? containerNode->rootProjectNode() : node);
|
||||
const auto *proFileNode = dynamic_cast<const QmakeProFileNode *>(containerNode ? containerNode->rootProjectNode() : node);
|
||||
|
||||
m_addLibraryActionContextMenu->setEnabled(proFileNode);
|
||||
QmakeProject *qmakeProject = qobject_cast<QmakeProject *>(QmakeManager::contextProject());
|
||||
auto *qmakeProject = qobject_cast<QmakeProject *>(QmakeManager::contextProject());
|
||||
QmakeProFileNode *subProjectNode = nullptr;
|
||||
disableBuildFileMenus();
|
||||
if (node) {
|
||||
|
||||
Reference in New Issue
Block a user