Commit 1385844d authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

QtSupport: Pass const value by reference

Change-Id: Ibb99ad400a7be9942924abe369c6088be98ad9ec
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent d67f4db2
......@@ -173,7 +173,7 @@ void QtOutputFormatter::appendMessage(const QString &txt, Utils::OutputFormat fo
cursor.endEditBlock();
}
void QtOutputFormatter::appendLine(QTextCursor &cursor, LinkResult lr,
void QtOutputFormatter::appendLine(QTextCursor &cursor, const LinkResult &lr,
const QString &line, Utils::OutputFormat format)
{
const QTextCharFormat normalFormat = charFormat(format);
......
......@@ -75,7 +75,7 @@ private slots:
private:
LinkResult matchLine(const QString &line) const;
void appendLine(QTextCursor &cursor, LinkResult lr, const QString &line,
void appendLine(QTextCursor &cursor, const LinkResult &lr, const QString &line,
Utils::OutputFormat);
mutable QRegExp m_qmlError;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment