diff options
| author | Orgad Shaneh <[email protected]> | 2016-07-24 10:10:44 +0300 |
|---|---|---|
| committer | Orgad Shaneh <[email protected]> | 2016-08-15 07:30:06 +0000 |
| commit | cfc8ed41c79c9f350b420bfedccc7abce442535e (patch) | |
| tree | 68851e3c4dcfbd21a3b5005447f868419319bc17 /src/plugins/git/gitplugin.cpp | |
| parent | fedf5de551bd13579baef4644ceff40f04393f1f (diff) | |
Git: Some more QStringList cleanup
Change-Id: I0c6e8f768ee46985dab8ae14f88f2bc8d34fed26
Reviewed-by: André Hartmann <[email protected]>
Diffstat (limited to 'src/plugins/git/gitplugin.cpp')
| -rw-r--r-- | src/plugins/git/gitplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 2d478833ab5..b8746962c21 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -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() |
