commit 58db4b99c0b61996da587136e833f3110f42e66d
parent bdf6ac40066f25ef8a9947fb4ce5d4a8dcff7900
Author: Chris Peterson <cpeterson@mozilla.com>
Date: Tue, 9 Dec 2025 00:01:31 +0000
Bug 2002864 - Replace MOZ_CONSTINIT with C++20 constinit in TestHandleWatcher.cpp. r=xpcom-reviewers,emilio
And remove commented out header file.
Differential Revision: https://phabricator.services.mozilla.com/D274510
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/xpcom/tests/gtest/TestHandleWatcher.cpp b/xpcom/tests/gtest/TestHandleWatcher.cpp
@@ -29,7 +29,6 @@
#include "nsITimer.h"
#include "nsTHashMap.h"
#include "nsThreadUtils.h"
-// #include "nscore.h"
namespace details {
static nsCString MakeTargetName(const char* name) {
@@ -113,7 +112,7 @@ class TestHandleWatcher : public testing::Test {
/* static */
bool TestHandleWatcher::sIsLive = false;
/* static */
-MOZ_CONSTINIT RefPtr<mozilla::SharedThreadPool> TestHandleWatcher::sPool;
+constinit RefPtr<mozilla::SharedThreadPool> TestHandleWatcher::sPool;
///////////////////////////////////////////////////////////////////////
// WindowsEventObject