summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-02-07 12:13:19 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-02-28 17:45:21 +0200
commit810999fadf41576204752113f33336a69603de4a (patch)
treec228c311bf62d62af0710cc0a0a0ca7f7ebae813 /platform
parent96ec18376fb91fd857d96ecdb07db14d8a5cf4fd (diff)
downloadqtlocation-mapboxgl-810999fadf41576204752113f33336a69603de4a.tar.gz
[core] Simplify util::peer
Remove custom vtable, base implementation on `std::unique_ptr`.
Diffstat (limited to 'platform')
-rw-r--r--platform/android/src/style/sources/source.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/src/style/sources/source.cpp b/platform/android/src/style/sources/source.cpp
index e13f55aff1..be4c0367fc 100644
--- a/platform/android/src/style/sources/source.cpp
+++ b/platform/android/src/style/sources/source.cpp
@@ -133,7 +133,7 @@ namespace android {
// Release the peer relationships. These will be re-established when the source is added to a map
assert(ownedSource->peer.has_value());
ownedSource->peer.get<std::unique_ptr<Source>>().release();
- ownedSource->peer.reset();
+ ownedSource->peer = util::peer();
// Release the strong reference to the java peer
assert(javaPeer);