forked from qt-creator/qt-creator
DiffEditor: avoid gcc warning
overflow in implicit constant conversion Change-Id: I8eaf55ab1e2108de44e7aa2dc832e1ee13814d3b Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
This commit is contained in:
@@ -983,7 +983,7 @@ QString Diff::toString() const
|
||||
{
|
||||
QString prettyText = text;
|
||||
// Replace linebreaks with pretty char
|
||||
prettyText.replace(QLatin1Char('\n'), QLatin1Char(L'\u00b6'));
|
||||
prettyText.replace(QLatin1Char('\n'), QLatin1Char('\xb6'));
|
||||
return commandString(command) + QLatin1String(" \"")
|
||||
+ prettyText + QLatin1String("\"");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user