forked from qt-creator/qt-creator
DiffEditor: Replace bool arguments with flags enum
Change-Id: I70262476d015ba5b73069b149093dac66f7c6008 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
b8ee51fef1
commit
6bc12ff446
@@ -71,9 +71,10 @@ QString DiffEditorController::revisionFromDescription() const
|
||||
return m_document->description().mid(7, 12);
|
||||
}
|
||||
|
||||
QString DiffEditorController::makePatch(bool revert, bool addPrefix) const
|
||||
QString DiffEditorController::makePatch(PatchOptions options) const
|
||||
{
|
||||
return m_document->makePatch(m_diffFileIndex, m_chunkIndex, revert, addPrefix);
|
||||
return m_document->makePatch(m_diffFileIndex, m_chunkIndex,
|
||||
options & Revert, options & AddPrefix);
|
||||
}
|
||||
|
||||
Core::IDocument *DiffEditorController::findOrCreateDocument(const QString &vcsId,
|
||||
|
||||
Reference in New Issue
Block a user