summaryrefslogtreecommitdiff
path: root/src/plugins/perforce
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-08-23 01:19:53 +0200
committerEike Ziller <eike.ziller@digia.com>2014-08-25 08:21:14 +0200
commit6431ab2c799553623ec3fe6a79f1e85484558dd6 (patch)
treee82f7812bb38906d75bc41109336206fa09eff9d /src/plugins/perforce
parent2b5df11cb8f6e8d40d86728e8b788aff3a755907 (diff)
downloadqt-creator-6431ab2c799553623ec3fe6a79f1e85484558dd6.tar.gz
Use Qt 5's QStringList::join(QChar)
Less typing and less cycles than join(QString) where appropriate Change-Id: I6ebc0e17e4d7fd9845864dd95b7de4ba4dad6906 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/perforce')
-rw-r--r--src/plugins/perforce/perforcesubmiteditor.cpp6
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);