aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/winrt/winrtqtversion.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-02-18 13:02:36 +0100
committerhjk <hjk@qt.io>2019-02-19 09:21:56 +0000
commit139f700162f4a37e35048b9dce22e4369aae450c (patch)
treea0dc01b3b52c7f281fa6eaa079ac668d351a02b8 /src/plugins/winrt/winrtqtversion.cpp
parent2562d540f90f708552ec94205135b3b3e9669392 (diff)
QtSupport: Replace BaseQtVersion::clone()
... by a mechanism that doesn't require re-implementation in each derived class. A QtVersion's type() is uniquely defined by the supported type of the factory creating it, so that factory can be found and used for cloning. Non-base data is copied by a fromMap(toMap()) dance as done in the project configurations. As a side-effect, the *QtVersion copy constructors are not used and not needed anymore. Change-Id: I3aa5a0fd90a27dd115769e0573647cb5669641a0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/winrt/winrtqtversion.cpp')
-rw-r--r--src/plugins/winrt/winrtqtversion.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/plugins/winrt/winrtqtversion.cpp b/src/plugins/winrt/winrtqtversion.cpp
index 24e13cfec3..33d6a32bdc 100644
--- a/src/plugins/winrt/winrtqtversion.cpp
+++ b/src/plugins/winrt/winrtqtversion.cpp
@@ -33,16 +33,6 @@
namespace WinRt {
namespace Internal {
-QtSupport::BaseQtVersion *WinRtQtVersion::clone() const
-{
- return new WinRtQtVersion(*this);
-}
-
-QString WinRtQtVersion::type() const
-{
- return QLatin1String(Constants::WINRT_WINRTQT);
-}
-
QString WinRtQtVersion::description() const
{
return tr("Windows Runtime");