Index: Source/modules/geofencing/Geofencing.cpp |
diff --git a/Source/modules/geofencing/Geofencing.cpp b/Source/modules/geofencing/Geofencing.cpp |
index 717c7eba4c079c2b6944368e060eab70de606d3b..d6def50616666e02675a5be750f7996523fc3dce 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; |
} |