Core: Fix some 0 as nullptr warnings

Change-Id: Ie8018b72c68bd8e14021bb63140c9e4c0a6deb94
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-12-12 16:21:39 +01:00
parent 6e0d44b0ff
commit 3690d15965

View File

@@ -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);