forked from qt-creator/qt-creator
Make PluginManager mostly static.
Change-Id: Ib938aa4999c7c418a82304c5cca2e8748ef9d228 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -50,9 +50,8 @@ MessageManager::MessageManager()
|
||||
|
||||
MessageManager::~MessageManager()
|
||||
{
|
||||
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
|
||||
if (pm && m_messageOutputWindow) {
|
||||
pm->removeObject(m_messageOutputWindow);
|
||||
if (m_messageOutputWindow) {
|
||||
ExtensionSystem::PluginManager::removeObject(m_messageOutputWindow);
|
||||
delete m_messageOutputWindow;
|
||||
}
|
||||
|
||||
@@ -62,7 +61,7 @@ MessageManager::~MessageManager()
|
||||
void MessageManager::init()
|
||||
{
|
||||
m_messageOutputWindow = new Internal::MessageOutputWindow;
|
||||
ExtensionSystem::PluginManager::instance()->addObject(m_messageOutputWindow);
|
||||
ExtensionSystem::PluginManager::addObject(m_messageOutputWindow);
|
||||
}
|
||||
|
||||
void MessageManager::showOutputPane()
|
||||
|
||||
Reference in New Issue
Block a user