diff options
Diffstat (limited to 'www-client/chromium/files/chromium-81-gcc-constexpr.patch')
-rw-r--r-- | www-client/chromium/files/chromium-81-gcc-constexpr.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/www-client/chromium/files/chromium-81-gcc-constexpr.patch b/www-client/chromium/files/chromium-81-gcc-constexpr.patch new file mode 100644 index 000000000000..a9c1507c078b --- /dev/null +++ b/www-client/chromium/files/chromium-81-gcc-constexpr.patch @@ -0,0 +1,19 @@ +diff --git a/ui/views/layout/layout_types.h b/ui/views/layout/layout_types.h +index 8f9dbf4..ba118b9 100644 +--- a/ui/views/layout/layout_types.h ++++ b/ui/views/layout/layout_types.h +@@ -45,12 +45,12 @@ class VIEWS_EXPORT SizeBounds { + ~SizeBounds() = default; + + constexpr const base::Optional<int>& width() const { return width_; } +- constexpr void set_width(base::Optional<int> width) { ++ inline void set_width(base::Optional<int> width) { + width_ = std::move(width); + } + + constexpr const base::Optional<int>& height() const { return height_; } +- constexpr void set_height(base::Optional<int> height) { ++ inline void set_height(base::Optional<int> height) { + height_ = std::move(height); + } + |