Git: Some more QStringList cleanup

Change-Id: I0c6e8f768ee46985dab8ae14f88f2bc8d34fed26
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Orgad Shaneh
2016-07-24 10:10:44 +03:00
committed by Orgad Shaneh
parent fedf5de551
commit cfc8ed41c7
8 changed files with 13 additions and 17 deletions

View File

@@ -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()