diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2017-10-11 05:28:41 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2017-10-11 06:30:25 +0000 |
commit | 679cee878db1eac305e42e305da91570cf164e36 (patch) | |
tree | f93d91a9cbe6fdf20a636006e28914f1694ee37d | |
parent | 409e708720aecdf5273ab725a6cc7d6e34dab780 (diff) |
VCS: Clean up QLatin1String in VcsBasePlugin
Change-Id: I80e01ee352c5a973b5b84537df7b4170b6e1f036
Reviewed-by: André Hartmann <aha_1980@gmx.de>
-rw-r--r-- | src/plugins/vcsbase/vcsbaseplugin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp index 92b2fb44a3..acc3e312ad 100644 --- a/src/plugins/vcsbase/vcsbaseplugin.cpp +++ b/src/plugins/vcsbase/vcsbaseplugin.cpp @@ -269,8 +269,8 @@ void StateListener::slotStateChanged() if (currentFi.exists()) { // Quick check: Does it look like a patch? - const bool isPatch = state.currentFile.endsWith(QLatin1String(".patch")) - || state.currentFile.endsWith(QLatin1String(".diff")); + const bool isPatch = state.currentFile.endsWith(".patch") + || state.currentFile.endsWith(".diff"); if (isPatch) { // Patch: Figure out a name to display. If it is a temp file, it could be // Codepaster. Use the display name of the editor. @@ -787,9 +787,9 @@ void VcsBasePlugin::setProcessEnvironment(QProcessEnvironment *e, const QString &sshPromptBinary) { if (forceCLocale) - e->insert(QLatin1String("LANG"), QString(QLatin1Char('C'))); + e->insert("LANG", "C"); if (!sshPromptBinary.isEmpty()) - e->insert(QLatin1String("SSH_ASKPASS"), sshPromptBinary); + e->insert("SSH_ASKPASS", sshPromptBinary); } // Run a process synchronously, returning Utils::SynchronousProcessResponse |