ohos: drop withContext() in position info source


withContext() is used in makeSinglePositionInfoUpdateProducer() only to
keep the position update proxy reachable from both the then and the
catch callback of the getCurrentLocation() promise. Build the proxy
behind a shared_ptr right away, the way registerLocationErrorHandler()
and the satellite info source already do.

No functional change is intended.

Part of removing QNapi::PromiseWithContext.

Pick-to: 6.12
Task-number: QTBUG-150038
Change-Id: I3a590ac31cf791824f4cdf7045589015297d3292
Reviewed-by: SanthoshKumar Selvaraj <santhosh.kumar.selvaraj@qt.io>
commit5b7e883ebc1da3e746eff837e493b28a23eafaf8
parent9617bbd16aea60a9b0b997ded1b5278989ef9c6e
authorZbigniew Chyla <zbigniew.chyla@qt.io>
committerZbigniew Chyla <zbigniew.chyla@qt.io>
commit timeTue, 22 Sep 2026 04:39:55 +0000