diff options
| author | Jarek Kobus <[email protected]> | 2024-01-20 16:59:51 +0100 |
|---|---|---|
| committer | Jarek Kobus <[email protected]> | 2024-01-20 16:40:40 +0000 |
| commit | cbec5438b4b8f1860f4556c8426ea23c2ec22994 (patch) | |
| tree | acac3f263f7a5033685272ee8b74073cfbe043a9 /src/plugins/git/branchview.cpp | |
| parent | ee09a28e8354aecbeae23f73c2e11d1f321e1287 (diff) | |
GitClient: Change synchronousStashList() signature
Get rid of unused errorMessage arg.
Return the stash list directly.
Change-Id: I9bf156c5ecda476a5def3c3490d6cb13d011a3cd
Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/git/branchview.cpp')
| -rw-r--r-- | src/plugins/git/branchview.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/git/branchview.cpp b/src/plugins/git/branchview.cpp index 7533582014f..01ff5ce8ac4 100644 --- a/src/plugins/git/branchview.cpp +++ b/src/plugins/git/branchview.cpp @@ -399,9 +399,8 @@ bool BranchView::checkout() if (gitClient().gitStatus(m_repository, StatusMode(NoUntracked | NoSubmodules)) != GitClient::StatusChanged) branchCheckoutDialog.foundNoLocalChanges(); - QList<Stash> stashes; - gitClient().synchronousStashList(m_repository, &stashes); - for (const Stash &stash : std::as_const(stashes)) { + const QList<Stash> stashes = gitClient().synchronousStashList(m_repository); + for (const Stash &stash : stashes) { if (stash.message.startsWith(popMessageStart)) { branchCheckoutDialog.foundStashForNextBranch(); break; @@ -433,10 +432,9 @@ bool BranchView::checkout() if (moveChanges) { gitClient().endStashScope(m_repository); } else if (popStash) { - QList<Stash> stashes; QString stashName; - gitClient().synchronousStashList(m_repository, &stashes); - for (const Stash &stash : std::as_const(stashes)) { + const QList<Stash> stashes = gitClient().synchronousStashList(m_repository); + for (const Stash &stash : stashes) { if (stash.message.startsWith(popMessageStart)) { stashName = stash.name; break; |
