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 {