diff --git a/src/plugins/qmldesigner/designercore/model/rewriterview.cpp b/src/plugins/qmldesigner/designercore/model/rewriterview.cpp index 1671d408187cd2daddee049453d39db041000e81..208a16ac6e7b269d1a047f64359b32d97a8eddcb 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); } }