Commit 3e54ec22 authored by Thiago Macieira's avatar Thiago Macieira Committed by Orgad Shaneh
Browse files

Don't concatenate QStrings if concatenating string literals is fine



Change-Id: Ia0aac2f09e9245339951ffff13c81b3d3ea0987e
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 7f200358
...@@ -415,8 +415,8 @@ QString VcsManager::msgAddToVcsFailedTitle() ...@@ -415,8 +415,8 @@ QString VcsManager::msgAddToVcsFailedTitle()
QString VcsManager::msgToAddToVcsFailed(const QStringList &files, const IVersionControl *vc) QString VcsManager::msgToAddToVcsFailed(const QStringList &files, const IVersionControl *vc)
{ {
return files.size() == 1 return files.size() == 1
? tr("Could not add the file\n%1\nto version control (%2)") ? tr("Could not add the file\n%1\nto version control (%2)\n")
.arg(files.front(), vc->displayName()) + QLatin1Char('\n') .arg(files.front(), vc->displayName())
: tr("Could not add the following files to version control (%1)\n%2") : tr("Could not add the following files to version control (%1)\n%2")
.arg(vc->displayName(), files.join(QString(QLatin1Char('\n')))); .arg(vc->displayName(), files.join(QString(QLatin1Char('\n'))));
} }
......
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