From 4895f1163a422672779fb8e1dd4165961a8c2760 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Mon, 18 Mar 2019 17:58:33 +0100 Subject: [PATCH] MessageManager: Small cleanup Change-Id: I9db4593d4d97981de0995affdd9e38060c57ec4d Reviewed-by: Eike Ziller --- src/plugins/coreplugin/messagemanager.cpp | 5 +++-- src/plugins/coreplugin/messagemanager.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/coreplugin/messagemanager.cpp b/src/plugins/coreplugin/messagemanager.cpp index 734a11399eb..f29abc0a460 100644 --- a/src/plugins/coreplugin/messagemanager.cpp +++ b/src/plugins/coreplugin/messagemanager.cpp @@ -24,6 +24,7 @@ ****************************************************************************/ #include "messagemanager.h" + #include "messageoutputwindow.h" #include @@ -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'); } diff --git a/src/plugins/coreplugin/messagemanager.h b/src/plugins/coreplugin/messagemanager.h index d530db8603f..9d8e07d2b45 100644 --- a/src/plugins/coreplugin/messagemanager.h +++ b/src/plugins/coreplugin/messagemanager.h @@ -27,8 +27,8 @@ #include "core_global.h" #include "ioutputpane.h" -#include +#include #include namespace Core {