diff options
author | Bernie Innocenti <codewiz@google.com> | 2020-02-03 23:54:02 +0900 |
---|---|---|
committer | Bernie Innocenti <codewiz@google.com> | 2020-02-04 12:55:23 +0000 |
commit | 1cc76dfe8475fb18b4cf4220d938e1945568fde6 (patch) | |
tree | 1e14540e8568c9687101ec3dfde8ab1554e62545 /init/service_parser.cpp | |
parent | 955601beb42c7c57526e35853d5c8b3a06d13450 (diff) |
Delete dangerous comparison operators from base::expected
These operators were included because they're present in the draft
standard proposal of std::expected, but they were deemed to lead to
bugs, particularly when T is implicitly convertible to bool.
Change-Id: Ib149decf1f230198f358dc1ae0eaed71961363f6
Test: m
Diffstat (limited to 'init/service_parser.cpp')
-rw-r--r-- | init/service_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/service_parser.cpp b/init/service_parser.cpp index 1d431e3a6..3f817921f 100644 --- a/init/service_parser.cpp +++ b/init/service_parser.cpp @@ -208,7 +208,7 @@ Result<void> ServiceParser::ParseKeycodes(std::vector<std::string>&& args) { // If the property is not set, it defaults to none, in which case there are no keycodes // for this service. - if (expanded == "none") { + if (*expanded == "none") { return {}; } |