diff options
Diffstat (limited to 'netwerk/wifi')
-rw-r--r-- | netwerk/wifi/nsWifiMonitor.cpp | 4 | ||||
-rw-r--r-- | netwerk/wifi/nsWifiMonitor.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/netwerk/wifi/nsWifiMonitor.cpp b/netwerk/wifi/nsWifiMonitor.cpp index 5a7be15d16..f437dec4bd 100644 --- a/netwerk/wifi/nsWifiMonitor.cpp +++ b/netwerk/wifi/nsWifiMonitor.cpp @@ -364,13 +364,13 @@ nsresult nsWifiMonitor::DoScan() { } return NS_DispatchToMainThread( - NewRunnableMethod<const nsTArray<RefPtr<nsIWifiAccessPoint>>&&, bool>( + NewRunnableMethod<nsTArray<RefPtr<nsIWifiAccessPoint>>, bool>( "CallWifiListeners", this, &nsWifiMonitor::CallWifiListeners, mLastAccessPoints.Clone(), accessPointsChanged)); } nsresult nsWifiMonitor::CallWifiListeners( - nsTArray<RefPtr<nsIWifiAccessPoint>>&& aAccessPoints, + const nsTArray<RefPtr<nsIWifiAccessPoint>>& aAccessPoints, bool aAccessPointsChanged) { MOZ_ASSERT(NS_IsMainThread()); LOG(("Sending wifi access points to the listeners")); diff --git a/netwerk/wifi/nsWifiMonitor.h b/netwerk/wifi/nsWifiMonitor.h index 5a37cc75be..55a3feedea 100644 --- a/netwerk/wifi/nsWifiMonitor.h +++ b/netwerk/wifi/nsWifiMonitor.h @@ -69,7 +69,7 @@ class nsWifiMonitor final : public nsIWifiMonitor, public nsIObserver { nsresult DoScan(); nsresult CallWifiListeners( - nsTArray<RefPtr<nsIWifiAccessPoint>>&& aAccessPoints, + const nsTArray<RefPtr<nsIWifiAccessPoint>>& aAccessPoints, bool aAccessPointsChanged); nsresult PassErrorToWifiListeners(nsresult rv); |