Bug 1829452 - fix lints in WebrtcGlobalInformation;r=jesup

Differential Revision: https://phabricator.services.mozilla.com/D176209
This commit is contained in:
Nico Grunbaum 2023-04-23 01:39:11 +00:00
parent 615e96ac30
commit 55755e473d
2 changed files with 8 additions and 8 deletions

View File

@ -36,10 +36,10 @@
namespace mozilla::dom {
typedef nsMainThreadPtrHandle<WebrtcGlobalStatisticsCallback>
StatsRequestCallback;
using StatsRequestCallback =
nsMainThreadPtrHandle<WebrtcGlobalStatisticsCallback>;
typedef nsMainThreadPtrHandle<WebrtcGlobalLoggingCallback> LogRequestCallback;
using LogRequestCallback = nsMainThreadPtrHandle<WebrtcGlobalLoggingCallback>;
class WebrtcContentParents {
public:
@ -50,11 +50,12 @@ class WebrtcContentParents {
return sContentParents;
}
private:
static std::vector<RefPtr<WebrtcGlobalParent>> sContentParents;
WebrtcContentParents() = delete;
WebrtcContentParents(const WebrtcContentParents&) = delete;
WebrtcContentParents& operator=(const WebrtcContentParents&) = delete;
private:
static std::vector<RefPtr<WebrtcGlobalParent>> sContentParents;
};
std::vector<RefPtr<WebrtcGlobalParent>> WebrtcContentParents::sContentParents;
@ -98,7 +99,7 @@ GetStatsPromiseForThisProcess(const nsAString& aPcIdFilter) {
nsTArray<RefPtr<dom::RTCStatsReportPromise>> promises;
std::set<nsString> pcids;
if (auto ctx = GetPeerConnectionCtx()) {
if (auto* ctx = GetPeerConnectionCtx()) {
// Grab stats for PCs that still exist
ctx->ForEachPeerConnection([&](PeerConnectionImpl* aPc) {
if (!aPcIdFilter.IsEmpty() &&
@ -159,7 +160,7 @@ static std::map<int32_t, dom::Sequence<nsString>>& GetWebrtcGlobalLogStash() {
static void ClearLongTermStats() {
GetWebrtcGlobalStatsStash().Clear();
if (auto ctx = GetPeerConnectionCtx()) {
if (auto* ctx = GetPeerConnectionCtx()) {
ctx->ClearClosedStats();
}
}

View File

@ -45,7 +45,6 @@ class WebrtcGlobalInformation {
static void StashStats(const RTCStatsReportInternal& aReport);
private:
WebrtcGlobalInformation() = delete;
WebrtcGlobalInformation(const WebrtcGlobalInformation& aOrig) = delete;
WebrtcGlobalInformation& operator=(const WebrtcGlobalInformation& aRhs) =