tor-browser

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

commit 64db55074637e749454aaf026f472d2609404bad
parent fe5de2b415a48098b9cbd041269e6d24631ac03e
Author: serge-sans-paille <sguelton@mozilla.com>
Date:   Fri,  7 Nov 2025 10:15:49 +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;