-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Reduce unsafeness of pay-related code #47047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce unsafeness of pay-related code #47047
Conversation
EWS run on previous version of this PR (hash 91a7ef7) |
Safer C++ Build #41229 (91a7ef7)
|
91a7ef7
to
51c6686
Compare
EWS run on previous version of this PR (hash 51c6686) |
@@ -108,16 +108,16 @@ static PKPaymentButtonStyle toPKPaymentButtonStyle(ApplePayButtonStyle style) | |||
context.scale(FloatSize(1, -1)); | |||
|
|||
auto logicalRect = borderRect.rect(); | |||
const auto& applePayButtonPart = owningApplePayButtonPart(); | |||
const Ref applePayButtonPart = owningApplePayButtonPart(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should drop the const
51c6686
to
0fe8acd
Compare
EWS run on current version of this PR (hash 0fe8acd) |
https://bugs.webkit.org/show_bug.cgi?id=294827 Reviewed by Chris Dumez. Apply https://github.com/WebKit/WebKit/wiki/Safer-CPP-Guidelines Canonical link: https://commits.webkit.org/296553@main
0fe8acd
to
02a8fbd
Compare
Committed 296553@main (02a8fbd): https://commits.webkit.org/296553@main Reviewed commits have been landed. Closing PR #47047 and removing active labels. |
02a8fbd
0fe8acd
🛠 win🧪 wpe-wk2🧪 win-tests🧪 ios-wk2🧪 api-mac🧪 api-wpe🧪 mac-wk1🧪 api-ios🧪 mac-wk2🧪 gtk-wk2🧪 mac-wk2-stress🧪 api-gtk🧪 mac-intel-wk2🛠 playstation🛠 mac-safer-cpp