diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-02-07 12:13:19 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-02-28 17:45:21 +0200 |
commit | 810999fadf41576204752113f33336a69603de4a (patch) | |
tree | c228c311bf62d62af0710cc0a0a0ca7f7ebae813 /platform | |
parent | 96ec18376fb91fd857d96ecdb07db14d8a5cf4fd (diff) | |
download | qtlocation-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.cpp | 2 |
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); |