summaryrefslogtreecommitdiffstats
path: root/src/plugins/winrt/qwinrtcameracontrol.h
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@theqtcompany.com>2016-04-14 10:45:21 +0200
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2016-04-22 11:44:37 +0000
commit5206d3783645ad4caf189ab77ce82f360d1e45bc (patch)
treec40fba29ce29795bf942f3a7b787d22e9e533b69 /src/plugins/winrt/qwinrtcameracontrol.h
parentf97e1988a6f76d46d551678666a96fa5f36a92f7 (diff)
winrt: Use ComPtr for better ref count tracking
Just forwarding the content of a ComPtr is potentially dangerous. Change-Id: I4f3dfa04a5844d299a5653e31a4a0d1e1b86f9b5 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/winrt/qwinrtcameracontrol.h')
-rw-r--r--src/plugins/winrt/qwinrtcameracontrol.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/winrt/qwinrtcameracontrol.h b/src/plugins/winrt/qwinrtcameracontrol.h
index b3c86adf9..1c0cbd808 100644
--- a/src/plugins/winrt/qwinrtcameracontrol.h
+++ b/src/plugins/winrt/qwinrtcameracontrol.h
@@ -40,6 +40,8 @@
#include <QtMultimedia/QCameraControl>
#include <QtCore/qt_windows.h>
+#include <wrl.h>
+
namespace ABI {
namespace Windows {
namespace Media {
@@ -90,7 +92,7 @@ public:
QCameraFocusControl *cameraFocusControl() const;
QCameraLocksControl *cameraLocksControl() const;
- ABI::Windows::Media::Capture::IMediaCapture *handle() const;
+ Microsoft::WRL::ComPtr<ABI::Windows::Media::Capture::IMediaCapture> handle() const;
bool setFocus(QCameraFocus::FocusModes mode);
bool setFocusPoint(const QPointF &point);