forked from qt-creator/qt-creator
DiffEditor: Limit the usage of qMakePair
Change-Id: I0f7f4235cba4e1f6df4245cb51a37ff82a8e5109 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -416,8 +416,8 @@ void DiffEditor::prepareForReload()
|
||||
|
||||
if (m_entriesComboBox->count() > 0) {
|
||||
m_currentFileChunk
|
||||
= qMakePair(m_entriesComboBox->itemData(m_currentDiffFileIndex, Qt::UserRole).toString(),
|
||||
m_entriesComboBox->itemData(m_currentDiffFileIndex, Qt::UserRole + 1).toString());
|
||||
= {m_entriesComboBox->itemData(m_currentDiffFileIndex, Qt::UserRole).toString(),
|
||||
m_entriesComboBox->itemData(m_currentDiffFileIndex, Qt::UserRole + 1).toString()};
|
||||
} else {
|
||||
m_currentFileChunk = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user