aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/android/androiddeployqtstep.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2024-02-01 20:09:12 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2024-02-02 16:45:57 +0000
commit656a30b407a7098830ae1f50a2079c9bf3809e87 (patch)
tree81860a54b6a9b9a09c857c8946c12ffb382c6cff /src/plugins/android/androiddeployqtstep.cpp
parent9fe7922d3befd2273b1f8fceadee801754d1c139 (diff)
IDevice: Replace QSharedPointer with std::shared_ptr
According to https://wiki.qt.io/Things_To_Look_Out_For_In_Reviews QSharedPointer impl is poor and it's going to be removed from Qt 7. Replace QWeakPointer with std::weak_ptr. Replace QEnableSharedFromThis with std::enable_shared_from_this. Use std::static_pointer_cast and std::dynamic_pointer_cast for casts used with QSharedPointer before. Change-Id: If255a100c790860934f36d52906b93f33c31cfe8 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/android/androiddeployqtstep.cpp')
-rw-r--r--src/plugins/android/androiddeployqtstep.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/android/androiddeployqtstep.cpp b/src/plugins/android/androiddeployqtstep.cpp
index 4a5f1dc97e..fcf5b9703a 100644
--- a/src/plugins/android/androiddeployqtstep.cpp
+++ b/src/plugins/android/androiddeployqtstep.cpp
@@ -218,7 +218,7 @@ bool AndroidDeployQtStep::init()
if (!info.isValid()) {
const auto dev =
- static_cast<const AndroidDevice *>(DeviceKitAspect::device(kit()).data());
+ static_cast<const AndroidDevice *>(DeviceKitAspect::device(kit()).get());
if (!dev) {
reportWarningOrError(Tr::tr("No valid deployment device is set."), Task::Error);
return false;