diff options
Diffstat (limited to 'src/plugins/perforce')
-rw-r--r-- | src/plugins/perforce/perforcesubmiteditor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/perforce/perforcesubmiteditor.cpp b/src/plugins/perforce/perforcesubmiteditor.cpp index eb1b3d2f2f..0063209d49 100644 --- a/src/plugins/perforce/perforcesubmiteditor.cpp +++ b/src/plugins/perforce/perforcesubmiteditor.cpp @@ -125,7 +125,7 @@ void PerforceSubmitEditor::updateFields() m_entries.value(QLatin1String("Client")).trimmed(), m_entries.value(QLatin1String("User")).trimmed()); - const QString newLine = QString(QLatin1Char('\n')); + const QChar newLine = QLatin1Char('\n'); QStringList lines = m_entries.value(QLatin1String("Description")).split(newLine); lines.removeFirst(); // that is the line break after 'Description:' lines.removeLast(); // that is the empty line at the end @@ -150,8 +150,8 @@ void PerforceSubmitEditor::updateFields() void PerforceSubmitEditor::updateEntries() { - const QString newLine = QString(QLatin1Char('\n')); - const QString tab = QString(QLatin1Char('\t')); + const QChar newLine = QLatin1Char('\n'); + const QChar tab = QLatin1Char('\t'); QStringList lines = submitEditorWidget()->descriptionText().split(newLine); |