Commit 02796611 authored by Eike Ziller's avatar Eike Ziller

VCS: Remove unnecessary indirection

Change-Id: I73d70da7e6cc6006da92c05bf0b15da6b8bbf5bf
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 8cad383b
......@@ -1530,9 +1530,8 @@ IEditor *ClearCasePlugin::showOutputInEditor(const QString& title, const QString
e->setSource(source);
if (codec)
e->setCodec(codec);
IEditor *ie = e->editor();
EditorManager::activateEditor(ie);
return ie;
EditorManager::activateEditor(editor);
return editor;
}
const ClearCaseSettings &ClearCasePlugin::settings() const
......
......@@ -1182,9 +1182,8 @@ IEditor *CvsPlugin::showOutputInEditor(const QString& title, const QString &outp
e->setSource(source);
if (codec)
e->setCodec(codec);
IEditor *ie = e->editor();
EditorManager::activateEditor(ie);
return ie;
EditorManager::activateEditor(editor);
return editor;
}
CvsSettings CvsPlugin::settings() const
......
......@@ -1185,9 +1185,8 @@ Core::IEditor *PerforcePlugin::showOutputInEditor(const QString &title, const QS
e->setSuggestedFileName(s);
if (codec)
e->setCodec(codec);
Core::IEditor *ie = e->editor();
Core::EditorManager::activateEditor(ie);
return ie;
Core::EditorManager::activateEditor(editor);
return editor;
}
void PerforcePlugin::slotSubmitDiff(const QStringList &files)
......
......@@ -1036,9 +1036,8 @@ Core::IEditor *SubversionPlugin::showOutputInEditor(const QString &title, const
e->setSource(source);
if (codec)
e->setCodec(codec);
Core::IEditor *ie = e->editor();
Core::EditorManager::activateEditor(ie);
return ie;
Core::EditorManager::activateEditor(editor);
return editor;
}
SubversionSettings SubversionPlugin::settings() const
......
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