DiffEditor: Simplify makePatch

Store indices in controller and avoid passing them around.

Change-Id: I49c80cb6cf6734a18f80ad5c7c441973d246708f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
This commit is contained in:
Orgad Shaneh
2014-07-28 23:25:49 +03:00
committed by Orgad Shaneh
parent b01a6a4663
commit 20b836f59c
8 changed files with 51 additions and 89 deletions

View File

@@ -112,7 +112,7 @@ private:
void addContextMenuActions(QMenu *menu,
int diffFileIndex,
int chunkIndex);
void patch(int diffFileIndex, int chunkIndex, bool revert);
void patch(bool revert);
DiffEditorGuiController *m_guiController;
DiffEditorController *m_controller;