forked from qt-creator/qt-creator
Avoid going through ICore when it's not necessary
Many singletons have their own instance() method, in which case there is no need to use ICore::instance() to get access to them.
This commit is contained in:
@@ -578,8 +578,8 @@ void TaskDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
|
||||
TaskWindowContext::TaskWindowContext(QWidget *widget)
|
||||
: m_taskList(widget)
|
||||
{
|
||||
Core::ICore *core = Core::ICore::instance();
|
||||
m_context << core->uniqueIDManager()->uniqueIdentifier(Core::Constants::C_PROBLEM_PANE);
|
||||
Core::UniqueIDManager *uidm = Core::UniqueIDManager::instance();
|
||||
m_context << uidm->uniqueIdentifier(Core::Constants::C_PROBLEM_PANE);
|
||||
}
|
||||
|
||||
QList<int> TaskWindowContext::context() const
|
||||
|
||||
Reference in New Issue
Block a user