forked from qt-creator/qt-creator
VCS: Clean up QLatin1String in VcsBasePlugin
Change-Id: I80e01ee352c5a973b5b84537df7b4170b6e1f036 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
409e708720
commit
679cee878d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user