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:
		@@ -89,7 +89,7 @@ TextEditorActionHandler::TextEditorActionHandler(const QString &context,
 | 
			
		||||
    m_moveLineUpAction = 0;
 | 
			
		||||
    m_moveLineDownAction = 0;
 | 
			
		||||
 | 
			
		||||
    m_contextId << Core::ICore::instance()->uniqueIDManager()->uniqueIdentifier(context);
 | 
			
		||||
    m_contextId << Core::UniqueIDManager::instance()->uniqueIdentifier(context);
 | 
			
		||||
 | 
			
		||||
    connect(Core::ICore::instance(), SIGNAL(contextAboutToChange(Core::IContext *)),
 | 
			
		||||
        this, SLOT(updateCurrentEditor(Core::IContext *)));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user