forked from qt-creator/qt-creator
Core: Make Id(int) constructor less accessible
... and change two seemingly accidental uses. The functionality is still available by explicitly using Id::fromUniqueIdentifier(). Change-Id: I190e58f9fcd5c0f06e29103a0c0c82e322bee100 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#include "command_p.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/icontext.h>
|
||||
#include <coreplugin/id.h>
|
||||
|
||||
@@ -320,7 +321,7 @@ void Action::addOverrideAction(QAction *action, const Context &context, bool scr
|
||||
if (isEmpty())
|
||||
m_action->initialize(action);
|
||||
if (context.isEmpty()) {
|
||||
m_contextActionMap.insert(0, action);
|
||||
m_contextActionMap.insert(Constants::C_GLOBAL, action);
|
||||
} else {
|
||||
for (int i = 0; i < context.size(); ++i) {
|
||||
Id id = context.at(i);
|
||||
|
||||
Reference in New Issue
Block a user