tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 8ac9b654258da137a48005f179a897c15b5e8a24
parent 3475b0cae9bdb8f47e91bff6cb192e21adb8268c
Author: serge-sans-paille <sguelton@mozilla.com>
Date:   Thu,  6 Nov 2025 07:18:08 +0000

Bug 1998397 - Make nsWindow::sCurrentCursor MOZ_CONSTINIT instead of MOZ_RUNINIT r=emilio,win-reviewers,gstoll

Differential Revision: https://phabricator.services.mozilla.com/D271388

Diffstat:
Mwidget/windows/nsWindow.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp @@ -254,7 +254,7 @@ static const wchar_t kUser32LibName[] = L"user32.dll"; uint32_t nsWindow::sInstanceCount = 0; bool nsWindow::sIsOleInitialized = false; -MOZ_RUNINIT nsIWidget::Cursor nsWindow::sCurrentCursor = {}; +MOZ_CONSTINIT nsIWidget::Cursor nsWindow::sCurrentCursor = {}; nsWindow* nsWindow::sCurrentWindow = nullptr; bool nsWindow::sJustGotDeactivate = false; bool nsWindow::sJustGotActivate = false;