forked from qt-creator/qt-creator
QmlDesigner: modernize code style
- no behavior changes - using nullptr - renaming data -> d - transform single used small slot function to lambdas Change-Id: Ifae389b8a865b0b6a501b6f3d60597a66d9febe8 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
@@ -278,7 +278,7 @@ void DocumentManager::setCurrentDesignDocument(Core::IEditor *editor)
|
||||
{
|
||||
if (editor) {
|
||||
m_currentDesignDocument = m_designDocumentHash.value(editor);
|
||||
if (m_currentDesignDocument == 0) {
|
||||
if (m_currentDesignDocument == nullptr) {
|
||||
m_currentDesignDocument = new DesignDocument;
|
||||
m_designDocumentHash.insert(editor, m_currentDesignDocument);
|
||||
m_currentDesignDocument->setEditor(editor);
|
||||
@@ -405,7 +405,7 @@ void DocumentManager::findPathToIsoProFile(bool *iconResourceFileAlreadyExists,
|
||||
Utils::FileName qmlFileName = QmlDesignerPlugin::instance()->currentDesignDocument()->fileName();
|
||||
ProjectExplorer::Project *project = ProjectExplorer::SessionManager::projectForFile(qmlFileName);
|
||||
ProjectExplorer::Node *node = ProjectExplorer::SessionManager::nodeForFile(qmlFileName)->parentFolderNode();
|
||||
ProjectExplorer::Node *iconQrcFileNode = 0;
|
||||
ProjectExplorer::Node *iconQrcFileNode = nullptr;
|
||||
|
||||
while (node && !iconQrcFileNode) {
|
||||
qCDebug(documentManagerLog) << "Checking" << node->displayName() << "(" << node << node->nodeType() << ")";
|
||||
|
||||
Reference in New Issue
Block a user