commit 2877325b4dcb8fe592485bbd4c87a7683ce11880
parent 4ef68e5e6d0e30520447489c9790069f4b623a7a
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 test_IHistory.cpp. r=places-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D274512
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/toolkit/components/places/tests/gtest/test_IHistory.cpp b/toolkit/components/places/tests/gtest/test_IHistory.cpp
@@ -8,7 +8,6 @@
#include "nsIPrefBranch.h"
#include "nsIPrefService.h"
#include "nsString.h"
-#include "mozilla/Attributes.h"
#include "mozilla/SpinEventLoopUntil.h"
#include "mozilla/StackWalk.h"
#include "mozilla/StaticPrefs_layout.h"
@@ -121,8 +120,8 @@ void test_wait_checkpoint() {
// These variables are shared between part 1 and part 2 of the test. Part 2
// sets the nsCOMPtr's to nullptr, freeing the reference.
namespace test_unvisited_does_not_notify {
-MOZ_CONSTINIT nsCOMPtr<nsIURI> testURI;
-MOZ_CONSTINIT RefPtr<mock_Link> testLink;
+constinit nsCOMPtr<nsIURI> testURI;
+constinit RefPtr<mock_Link> testLink;
} // namespace test_unvisited_does_not_notify
void test_unvisited_does_not_notify_part1() {
using namespace test_unvisited_does_not_notify;