Skip to content

Commit d5ba7a3

Browse files
AlexsanderDamacenocdumez
authored andcommitted
Address Safer CPP issues in UserActivation.cpp
https://bugs.webkit.org/show_bug.cgi?id=289763 Reviewed by Tim Nguyen and Chris Dumez. Address Safer CPP issues * Source/WebCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations: * Source/WebCore/html/UserActivation.cpp: (WebCore::UserActivation::hasBeenActive const): (WebCore::UserActivation::isActive const): Canonical link: https://commits.webkit.org/292550@main
1 parent bdf66e6 commit d5ba7a3

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Source/WebCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ html/PermissionsPolicy.cpp
380380
html/PluginDocument.cpp
381381
html/RangeInputType.cpp
382382
html/TextFieldInputType.cpp
383-
html/UserActivation.cpp
384383
html/ValidatedFormListedElement.cpp
385384
html/ValidationMessage.cpp
386385
html/canvas/ANGLEInstancedArrays.cpp

Source/WebCore/html/UserActivation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ LocalDOMWindow* UserActivation::window() const
5757

5858
bool UserActivation::hasBeenActive() const
5959
{
60-
auto* window = this->window();
60+
RefPtr window = this->window();
6161
return window && window->hasStickyActivation();
6262
}
6363

6464
bool UserActivation::isActive() const
6565
{
66-
auto* window = this->window();
66+
RefPtr window = this->window();
6767
return window && window->hasTransientActivation();
6868
}
6969

0 commit comments

Comments
 (0)