Replace WTF::move with WTFMove
[WebKit-https.git] / Source / WebCore / Modules / battery / NavigatorBattery.cpp
index 14d7bf5..412ebe2 100644 (file)
@@ -36,14 +36,14 @@ NavigatorBattery::~NavigatorBattery()
 {
 }
 
-BatteryManager* NavigatorBattery::webkitBattery(Navigator* navigator)
+BatteryManager* NavigatorBattery::webkitBattery(Navigator& navigator)
 {
-    if (!navigator->frame())
+    if (!navigator.frame())
         return nullptr;
 
-    NavigatorBattery* navigatorBattery = NavigatorBattery::from(navigator);
+    NavigatorBattery* navigatorBattery = NavigatorBattery::from(&navigator);
     if (!navigatorBattery->m_batteryManager)
-        navigatorBattery->m_batteryManager = BatteryManager::create(navigator);
+        navigatorBattery->m_batteryManager = BatteryManager::create(&navigator);
     return navigatorBattery->m_batteryManager.get();
 }
 
@@ -58,7 +58,7 @@ NavigatorBattery* NavigatorBattery::from(Navigator* navigator)
     if (!supplement) {
         auto newSupplement = std::make_unique<NavigatorBattery>();
         supplement = newSupplement.get();
-        provideTo(navigator, supplementName(), WTF::move(newSupplement));
+        provideTo(navigator, supplementName(), WTFMove(newSupplement));
     }
     return supplement;
 }