forked from qt-creator/qt-creator
MessageManager: Small cleanup
Change-Id: I9db4593d4d97981de0995affdd9e38060c57ec4d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
198b1f5fa5
commit
4895f1163a
@@ -24,6 +24,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "messagemanager.h"
|
||||
|
||||
#include "messageoutputwindow.h"
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
@@ -31,7 +32,7 @@
|
||||
using namespace Core;
|
||||
|
||||
static MessageManager *m_instance = nullptr;
|
||||
Internal::MessageOutputWindow *m_messageOutputWindow = nullptr;
|
||||
static Internal::MessageOutputWindow *m_messageOutputWindow = nullptr;
|
||||
|
||||
MessageManager *MessageManager::instance()
|
||||
{
|
||||
@@ -78,6 +79,6 @@ void MessageManager::write(const QString &text, PrintToOutputPaneFlags flags)
|
||||
QTC_ASSERT(m_messageOutputWindow, return);
|
||||
|
||||
showOutputPane(flags);
|
||||
m_messageOutputWindow->append(text + QLatin1Char('\n'));
|
||||
m_messageOutputWindow->append(text + '\n');
|
||||
}
|
||||
|
||||
|
@@ -27,8 +27,8 @@
|
||||
|
||||
#include "core_global.h"
|
||||
#include "ioutputpane.h"
|
||||
#include <QMetaType>
|
||||
|
||||
#include <QMetaType>
|
||||
#include <QObject>
|
||||
|
||||
namespace Core {
|
||||
|
Reference in New Issue
Block a user