MessageManager: Small cleanup

Change-Id: I9db4593d4d97981de0995affdd9e38060c57ec4d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Andre Hartmann
2019-03-18 17:58:33 +01:00
committed by André Hartmann
parent 198b1f5fa5
commit 4895f1163a
2 changed files with 4 additions and 3 deletions

View File

@@ -24,6 +24,7 @@
****************************************************************************/ ****************************************************************************/
#include "messagemanager.h" #include "messagemanager.h"
#include "messageoutputwindow.h" #include "messageoutputwindow.h"
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>
@@ -31,7 +32,7 @@
using namespace Core; using namespace Core;
static MessageManager *m_instance = nullptr; static MessageManager *m_instance = nullptr;
Internal::MessageOutputWindow *m_messageOutputWindow = nullptr; static Internal::MessageOutputWindow *m_messageOutputWindow = nullptr;
MessageManager *MessageManager::instance() MessageManager *MessageManager::instance()
{ {
@@ -78,6 +79,6 @@ void MessageManager::write(const QString &text, PrintToOutputPaneFlags flags)
QTC_ASSERT(m_messageOutputWindow, return); QTC_ASSERT(m_messageOutputWindow, return);
showOutputPane(flags); showOutputPane(flags);
m_messageOutputWindow->append(text + QLatin1Char('\n')); m_messageOutputWindow->append(text + '\n');
} }

View File

@@ -27,8 +27,8 @@
#include "core_global.h" #include "core_global.h"
#include "ioutputpane.h" #include "ioutputpane.h"
#include <QMetaType>
#include <QMetaType>
#include <QObject> #include <QObject>
namespace Core { namespace Core {