Get rid of DiffEditor::editorWidget();

Change-Id: I3078002359871dad74d4a07924d5beeaeb9f82ba
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
jkobus
2013-12-19 11:46:52 +01:00
committed by Jarek Kobus
parent 5ee3d2da97
commit 1d954b1b2a
4 changed files with 13 additions and 8 deletions

View File

@@ -109,10 +109,10 @@ void DiffEditorPlugin::diff()
Core::EditorManager::activateEditor(editor);
DiffEditorWidget *editorWidget = editor->editorWidget();
QTextCodec *codec = editor->codec();
const QString text1 = getFileContents(fileName1, editorWidget->codec());
const QString text2 = getFileContents(fileName2, editorWidget->codec());
const QString text1 = getFileContents(fileName1, codec);
const QString text2 = getFileContents(fileName2, codec);
DiffEditorWidget::DiffFilesContents dfc;
dfc.leftFileInfo = fileName1;