forked from qt-creator/qt-creator
Core: Fix some 0 as nullptr warnings
Change-Id: Ie8018b72c68bd8e14021bb63140c9e4c0a6deb94 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -335,7 +335,7 @@ QList<Command *> ActionManager::commands()
|
||||
*/
|
||||
void ActionManager::unregisterAction(QAction *action, Id id)
|
||||
{
|
||||
Action *a = d->m_idCmdMap.value(id, 0);
|
||||
Action *a = d->m_idCmdMap.value(id, nullptr);
|
||||
if (!a) {
|
||||
qWarning() << "unregisterAction: id" << id.name()
|
||||
<< "is registered with a different command type.";
|
||||
@@ -468,7 +468,7 @@ void ActionManagerPrivate::showShortcutPopup(const QString &shortcut)
|
||||
|
||||
Action *ActionManagerPrivate::overridableAction(Id id)
|
||||
{
|
||||
Action *a = m_idCmdMap.value(id, 0);
|
||||
Action *a = m_idCmdMap.value(id, nullptr);
|
||||
if (!a) {
|
||||
a = new Action(id);
|
||||
m_idCmdMap.insert(id, a);
|
||||
|
Reference in New Issue
Block a user