未验证 提交 afed5c54 编写于 作者: D Dan Field 提交者: GitHub

Mark semantics functions const (#9243)

上级 c5b55e9a
......@@ -16,11 +16,11 @@ SemanticsNode::SemanticsNode(const SemanticsNode& other) = default;
SemanticsNode::~SemanticsNode() = default;
bool SemanticsNode::HasAction(SemanticsAction action) {
bool SemanticsNode::HasAction(SemanticsAction action) const {
return (actions & static_cast<int32_t>(action)) != 0;
}
bool SemanticsNode::HasFlag(SemanticsFlags flag) {
bool SemanticsNode::HasFlag(SemanticsFlags flag) const {
return (flags & static_cast<int32_t>(flag)) != 0;
}
......
......@@ -78,8 +78,8 @@ struct SemanticsNode {
~SemanticsNode();
bool HasAction(SemanticsAction action);
bool HasFlag(SemanticsFlags flag);
bool HasAction(SemanticsAction action) const;
bool HasFlag(SemanticsFlags flag) const;
// Whether this node is for embedded platform views.
bool IsPlatformViewNode() const;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册