From 9f353b56b64d9cc8cb3daf2c28c4eca21864c07e Mon Sep 17 00:00:00 2001 From: Tim Jenssen <tim.jenssen@qt.io> Date: Mon, 24 Oct 2016 07:30:19 +0200 Subject: [PATCH] QmlDesigner: use noquote, to respect line separators Change-Id: I98241fe605b9fb9925e9ab70bffc1ae6608cea3b Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> --- .../designercore/model/rewriterview.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/plugins/qmldesigner/designercore/model/rewriterview.cpp b/src/plugins/qmldesigner/designercore/model/rewriterview.cpp index 1671d40818..208a16ac6e 100644 --- a/src/plugins/qmldesigner/designercore/model/rewriterview.cpp +++ b/src/plugins/qmldesigner/designercore/model/rewriterview.cpp @@ -369,8 +369,8 @@ void RewriterView::applyChanges() if (inErrorState()) { const QString content = textModifierContent(); - qDebug() << "RewriterView::applyChanges() got called while in error state. Will do a quick-exit now."; - qDebug() << "Content:" << content; + qDebug().noquote() << "RewriterView::applyChanges() got called while in error state. Will do a quick-exit now."; + qDebug().noquote() << "Content: " << content; throw RewritingException(__LINE__, __FUNCTION__, __FILE__, "RewriterView::applyChanges() already in error state", content); } @@ -382,8 +382,8 @@ void RewriterView::applyChanges() enterErrorState(errors().first().description()); } catch (const Exception &e) { const QString content = textModifierContent(); - qDebug() << "RewriterException:" << m_rewritingErrorMessage; - qDebug() << "Content:" << content; + qDebug().noquote() << "RewriterException:" << m_rewritingErrorMessage; + qDebug().noquote() << "Content: " << qPrintable(content); enterErrorState(e.description()); } @@ -391,10 +391,10 @@ void RewriterView::applyChanges() if (inErrorState()) { const QString content = textModifierContent(); - qDebug() << "RewriterException:" << m_rewritingErrorMessage; - qDebug() << "Content:" << content; + qDebug().noquote() << "RewriterException: " << m_rewritingErrorMessage; + qDebug().noquote() << "Content: " << content; if (!errors().isEmpty()) - qDebug() << "Error:" << errors().first().description(); + qDebug().noquote() << "Error:" << errors().first().description(); throw RewritingException(__LINE__, __FUNCTION__, __FILE__, qPrintable(m_rewritingErrorMessage), content); } } -- GitLab