summaryrefslogtreecommitdiff
path: root/src/plugins/subversion
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-05-11 13:02:36 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-05-11 11:52:00 +0000
commitcaca9dfa6f63c942d591f6cf8e41475ebf68d93d (patch)
tree8ebe195669e695b4eb458c2a0b35b488ec4e4c6a /src/plugins/subversion
parent75f067550f15fe384f2b59989a90dcb7dd8d5e43 (diff)
downloadqt-creator-caca9dfa6f63c942d591f6cf8e41475ebf68d93d.tar.gz
CheckoutWizards: Simplify code to look up specific pages
Change-Id: I0098e17585d73e05632027676e7712ef9c843da2 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/subversion')
-rw-r--r--src/plugins/subversion/checkoutwizard.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/subversion/checkoutwizard.cpp b/src/plugins/subversion/checkoutwizard.cpp
index b5b9336ade..ad631b9f30 100644
--- a/src/plugins/subversion/checkoutwizard.cpp
+++ b/src/plugins/subversion/checkoutwizard.cpp
@@ -67,11 +67,7 @@ CheckoutWizard::CheckoutWizard(const FileName &path, QWidget *parent) :
VcsCommand *CheckoutWizard::createCommand(FileName *checkoutDir)
{
// Collect parameters for the checkout command.
- const CheckoutWizardPage *cwp = 0;
- foreach (int pageId, pageIds()) {
- if ((cwp = qobject_cast<const CheckoutWizardPage *>(page(pageId))))
- break;
- }
+ const CheckoutWizardPage *cwp = find<CheckoutWizardPage>();
QTC_ASSERT(cwp, return 0);
SubversionClient *client = SubversionPlugin::instance()->client();