forked from qt-creator/qt-creator
Git: Some more QStringList cleanup
Change-Id: I0c6e8f768ee46985dab8ae14f88f2bc8d34fed26 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
fedf5de551
commit
cfc8ed41c7
@@ -724,7 +724,7 @@ void GitPlugin::undoFileChanges(bool revertStaging)
|
||||
const VcsBasePluginState state = currentState();
|
||||
QTC_ASSERT(state.hasFile(), return);
|
||||
FileChangeBlocker fcb(state.currentFile());
|
||||
m_gitClient->revert(QStringList(state.currentFile()), revertStaging);
|
||||
m_gitClient->revert({ state.currentFile() }, revertStaging);
|
||||
}
|
||||
|
||||
class ResetItemDelegate : public LogItemDelegate
|
||||
@@ -839,7 +839,7 @@ void GitPlugin::unstageFile()
|
||||
{
|
||||
const VcsBasePluginState state = currentState();
|
||||
QTC_ASSERT(state.hasFile(), return);
|
||||
m_gitClient->synchronousReset(state.currentFileTopLevel(), QStringList(state.relativeCurrentFile()));
|
||||
m_gitClient->synchronousReset(state.currentFileTopLevel(), { state.relativeCurrentFile() });
|
||||
}
|
||||
|
||||
void GitPlugin::gitkForCurrentFile()
|
||||
|
Reference in New Issue
Block a user