summaryrefslogtreecommitdiff
path: root/src/plugins/cppcheck/cppchecktool.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-12-15 10:13:13 +0100
committerEike Ziller <eike.ziller@qt.io>2020-12-16 09:30:44 +0000
commiteaefcbd8f041b9f67723baf5a46d29a1cbce0865 (patch)
tree0266e3c13cfb7e41c9480b12ea14c93739f82dce /src/plugins/cppcheck/cppchecktool.cpp
parentc8980478805ed6bcdfbf2965cbf6c03492d804e6 (diff)
downloadqt-creator-eaefcbd8f041b9f67723baf5a46d29a1cbce0865.tar.gz
Use new, more evocative MessageManager API
At various places where semantics doesn't change. Change-Id: Ib4d4a5c9f067e109126c6de88257f9e198a71447 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cppcheck/cppchecktool.cpp')
-rw-r--r--src/plugins/cppcheck/cppchecktool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cppcheck/cppchecktool.cpp b/src/plugins/cppcheck/cppchecktool.cpp
index 91660020bb..883a727bbf 100644
--- a/src/plugins/cppcheck/cppchecktool.cpp
+++ b/src/plugins/cppcheck/cppchecktool.cpp
@@ -245,7 +245,7 @@ void CppcheckTool::startParsing()
{
if (m_options.showOutput) {
const QString message = tr("Cppcheck started: \"%1\".").arg(m_runner->currentCommand());
- Core::MessageManager::write(message, Core::MessageManager::Silent);
+ Core::MessageManager::writeSilently(message);
}
m_progress = std::make_unique<QFutureInterface<void>>();
@@ -263,7 +263,7 @@ void CppcheckTool::parseOutputLine(const QString &line)
return;
if (m_options.showOutput)
- Core::MessageManager::write(line, Core::MessageManager::Silent);
+ Core::MessageManager::writeSilently(line);
enum Matches { Percentage = 1 };
const QRegularExpressionMatch match = m_progressRegexp.match(line);
@@ -294,7 +294,7 @@ void CppcheckTool::parseErrorLine(const QString &line)
return;
if (m_options.showOutput)
- Core::MessageManager::write(line, Core::MessageManager::Silent);
+ Core::MessageManager::writeSilently(line);
enum Matches { File = 1, Line, Severity, Id, Message };
const QRegularExpressionMatch match = m_messageRegexp.match(line);
@@ -319,7 +319,7 @@ void CppcheckTool::parseErrorLine(const QString &line)
void CppcheckTool::finishParsing()
{
if (m_options.showOutput)
- Core::MessageManager::write(tr("Cppcheck finished."), Core::MessageManager::Silent);
+ Core::MessageManager::writeSilently(tr("Cppcheck finished."));
QTC_ASSERT(m_progress, return);
m_progress->reportFinished();