| Index: Source/modules/geofencing/Geofencing.cpp
|
| diff --git a/Source/modules/geofencing/Geofencing.cpp b/Source/modules/geofencing/Geofencing.cpp
|
| index c7bee130e3f1ee64f3d12c02f79da2208ccf82ce..2b143a2e72d5f3802798cc33553a2bea75a7a8d7 100644
|
| --- a/Source/modules/geofencing/Geofencing.cpp
|
| +++ b/Source/modules/geofencing/Geofencing.cpp
|
| @@ -28,12 +28,12 @@ namespace {
|
| // For CallbackPromiseAdapter to convert a WebVector of regions to a HeapVector.
|
| class RegionArray {
|
| public:
|
| - using WebType = OwnPtr<WebVector<WebGeofencingRegistration>>;
|
| - static HeapVector<Member<GeofencingRegion>> take(ScriptPromiseResolver* resolver, PassOwnPtr<WebVector<WebGeofencingRegistration>> webRegions)
|
| + using WebType = const WebVector<WebGeofencingRegistration>&;
|
| + static HeapVector<Member<GeofencingRegion>> take(ScriptPromiseResolver* resolver, const WebVector<WebGeofencingRegistration>& webRegions)
|
| {
|
| HeapVector<Member<GeofencingRegion>> regions;
|
| - for (size_t i = 0; i < webRegions->size(); ++i)
|
| - regions.append(CircularGeofencingRegion::create((*webRegions)[i].id, (*webRegions)[i].region));
|
| + for (size_t i = 0; i < webRegions.size(); ++i)
|
| + regions.append(CircularGeofencingRegion::create(webRegions[i].id, webRegions[i].region));
|
| return regions;
|
| }
|
|
|
|
|