Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
chromium.17344
chromium-97-Point-constexpr.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chromium-97-Point-constexpr.patch of Package chromium.17344
From 9850414c0425aebf038faf418f331df2d6ad573b Mon Sep 17 00:00:00 2001 From: Stephan Hartmann <stha09@googlemail.com> Date: Fri, 5 Nov 2021 08:53:26 +0000 Subject: [PATCH] GCC: make gfx::Point::operator== constexpr blink::IntRect::operator== is constexpr. Therefore, gfx::Point::operator== needs to be constexpr as well. --- ui/gfx/geometry/point.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/gfx/geometry/point.h b/ui/gfx/geometry/point.h index 71c5a5b..55b3220 100644 --- a/ui/gfx/geometry/point.h +++ b/ui/gfx/geometry/point.h @@ -95,7 +95,7 @@ class GEOMETRY_EXPORT Point { int y_; }; -inline bool operator==(const Point& lhs, const Point& rhs) { +constexpr bool operator==(const Point& lhs, const Point& rhs) { return lhs.x() == rhs.x() && lhs.y() == rhs.y(); } -- 2.32.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor