From d0e96ac431f8ebccc5fd21580414913824d72766 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 17 Jul 2019 22:50:42 +0200 Subject: Prepend message types by MSG_, Windows headerfiles define ERROR as macro. Signed-off-by: Pavel Pisa --- qtmips_cli/msgreport.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qtmips_cli') diff --git a/qtmips_cli/msgreport.cpp b/qtmips_cli/msgreport.cpp index bd5f478..96181d4 100644 --- a/qtmips_cli/msgreport.cpp +++ b/qtmips_cli/msgreport.cpp @@ -51,13 +51,13 @@ void MsgReport::report_message(messagetype::Type type, QString file, QString typestr = "error"; switch (type) { - case messagetype::ERROR: + case messagetype::MSG_ERROR: typestr = "error"; break; - case messagetype::WARNING: + case messagetype::MSG_WARNING: typestr = "warning"; break; - case messagetype::INFO: + case messagetype::MSG_INFO: typestr = "info"; break; default: -- cgit v1.2.3