Commit f69b1d42 authored by George Burgess IV's avatar George Burgess IV Committed by Commit Bot

blink/html: convert an enum constant to a constexpr

This constant is sometimes implicitly converted to a floating-point
number, which clang complains about, since such conversions are often
bugs.

Using a `constexpr int` should be equivalent.

Bug: 1058218
Change-Id: Ic6cafe54b97053b841caaa094a400727eb4cebb8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2096097Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
Commit-Queue: George Burgess <gbiv@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748893}
parent d1b2002b
......@@ -41,7 +41,7 @@ namespace blink {
class Document;
enum { kUninitializedDescriptor = -1 };
constexpr int kUninitializedDescriptor = -1;
class DescriptorParsingResult {
STACK_ALLOCATED();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment