forked from qt-creator/qt-creator
QmlDesigner: use noquote, to respect line separators
Change-Id: I98241fe605b9fb9925e9ab70bffc1ae6608cea3b Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
@@ -369,8 +369,8 @@ void RewriterView::applyChanges()
|
|||||||
|
|
||||||
if (inErrorState()) {
|
if (inErrorState()) {
|
||||||
const QString content = textModifierContent();
|
const QString content = textModifierContent();
|
||||||
qDebug() << "RewriterView::applyChanges() got called while in error state. Will do a quick-exit now.";
|
qDebug().noquote() << "RewriterView::applyChanges() got called while in error state. Will do a quick-exit now.";
|
||||||
qDebug() << "Content:" << content;
|
qDebug().noquote() << "Content: " << content;
|
||||||
throw RewritingException(__LINE__, __FUNCTION__, __FILE__, "RewriterView::applyChanges() already in error state", content);
|
throw RewritingException(__LINE__, __FUNCTION__, __FILE__, "RewriterView::applyChanges() already in error state", content);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -382,8 +382,8 @@ void RewriterView::applyChanges()
|
|||||||
enterErrorState(errors().first().description());
|
enterErrorState(errors().first().description());
|
||||||
} catch (const Exception &e) {
|
} catch (const Exception &e) {
|
||||||
const QString content = textModifierContent();
|
const QString content = textModifierContent();
|
||||||
qDebug() << "RewriterException:" << m_rewritingErrorMessage;
|
qDebug().noquote() << "RewriterException:" << m_rewritingErrorMessage;
|
||||||
qDebug() << "Content:" << content;
|
qDebug().noquote() << "Content: " << qPrintable(content);
|
||||||
enterErrorState(e.description());
|
enterErrorState(e.description());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -391,10 +391,10 @@ void RewriterView::applyChanges()
|
|||||||
|
|
||||||
if (inErrorState()) {
|
if (inErrorState()) {
|
||||||
const QString content = textModifierContent();
|
const QString content = textModifierContent();
|
||||||
qDebug() << "RewriterException:" << m_rewritingErrorMessage;
|
qDebug().noquote() << "RewriterException: " << m_rewritingErrorMessage;
|
||||||
qDebug() << "Content:" << content;
|
qDebug().noquote() << "Content: " << content;
|
||||||
if (!errors().isEmpty())
|
if (!errors().isEmpty())
|
||||||
qDebug() << "Error:" << errors().first().description();
|
qDebug().noquote() << "Error:" << errors().first().description();
|
||||||
throw RewritingException(__LINE__, __FUNCTION__, __FILE__, qPrintable(m_rewritingErrorMessage), content);
|
throw RewritingException(__LINE__, __FUNCTION__, __FILE__, qPrintable(m_rewritingErrorMessage), content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user