summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/wizard
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-08-01 11:49:33 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-08-01 15:19:58 +0000
commitd1284e910135efe68cb3b2f085afff9d760693dd (patch)
treef70bef0ba4282757d51c8c8f28f8877a73bc53e8 /src/plugins/vcsbase/wizard
parentbc8ebd3bc73501c7c51fbb00366d4211ccba6d5a (diff)
downloadqt-creator-d1284e910135efe68cb3b2f085afff9d760693dd.tar.gz
Move createInitialCheckoutCommand() out from core plugin
Change-Id: I99f4795822838ac084d0d6823db96e5864e0dcdf Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/vcsbase/wizard')
-rw-r--r--src/plugins/vcsbase/wizard/vcscommandpage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/vcsbase/wizard/vcscommandpage.cpp b/src/plugins/vcsbase/wizard/vcscommandpage.cpp
index 717fb96385..80c8a10617 100644
--- a/src/plugins/vcsbase/wizard/vcscommandpage.cpp
+++ b/src/plugins/vcsbase/wizard/vcscommandpage.cpp
@@ -24,9 +24,9 @@
****************************************************************************/
#include "vcscommandpage.h"
+#include "vcsbaseplugin.h"
#include "vcscommand.h"
-#include <coreplugin/iversioncontrol.h>
#include <coreplugin/vcsmanager.h>
#include <projectexplorer/jsonwizard/jsonwizard.h>
@@ -354,7 +354,8 @@ void VcsCommandPage::delayedInitialize()
QTC_ASSERT(wiz, return);
const QString vcsId = wiz->expander()->expand(m_vcsId);
- IVersionControl *vc = VcsManager::versionControl(Id::fromString(vcsId));
+ VcsBasePluginPrivate *vc = static_cast<VcsBasePluginPrivate *>(
+ VcsManager::versionControl(Id::fromString(vcsId)));
if (!vc) {
qWarning() << QCoreApplication::translate("VcsBase::VcsCommandPage",
"\"%1\" (%2) not found.")