summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmir Masoud Abdol <amir.abdol@qt.io>2023-03-30 09:59:37 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-04-03 08:43:10 +0000
commitf2e547b7a68c9ad05c0547cf959df905359718a0 (patch)
tree5704b7fb0db0b2323a4d91f2d4d4d25c49771c76
parent0f63d4d825c161947bc204a6c8e767e5baca9984 (diff)
downloadqtsensors-f2e547b7a68c9ad05c0547cf959df905359718a0.tar.gz
Resolve a duplicate symbol issue
This was colliding with a similarly named typedef in `winrtrotationsensor.cpp` and it seems to me that the name should have been GyrometerReadingHandler in the first place. This was causing issue for unity build. Task-number: QTBUG-109394 Change-Id: I721740caaf994ccf5514cbdc93371a3443378270 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 3436d5345b34be98d75aa9ffd54feb1c731822b3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/plugins/sensors/winrt/winrtgyroscope.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/sensors/winrt/winrtgyroscope.cpp b/src/plugins/sensors/winrt/winrtgyroscope.cpp
index 479e9d8..c5fff50 100644
--- a/src/plugins/sensors/winrt/winrtgyroscope.cpp
+++ b/src/plugins/sensors/winrt/winrtgyroscope.cpp
@@ -14,7 +14,7 @@ using namespace Microsoft::WRL::Wrappers;
using namespace ABI::Windows::Foundation;
using namespace ABI::Windows::Devices::Sensors;
-typedef ITypedEventHandler<Gyrometer *, GyrometerReadingChangedEventArgs *> InclinometerReadingHandler;
+typedef ITypedEventHandler<Gyrometer *, GyrometerReadingChangedEventArgs *> GyrometerReadingHandler;
QT_USE_NAMESPACE
@@ -129,8 +129,8 @@ void WinRtGyroscope::start()
if (d->token.value)
return;
- ComPtr<InclinometerReadingHandler> callback =
- Callback<InclinometerReadingHandler>(d, &WinRtGyroscopePrivate::readingChanged);
+ ComPtr<GyrometerReadingHandler> callback =
+ Callback<GyrometerReadingHandler>(d, &WinRtGyroscopePrivate::readingChanged);
HRESULT hr = d->sensor->add_ReadingChanged(callback.Get(), &d->token);
if (FAILED(hr)) {