forked from firka/flutter
Mark semantics functions const (flutter/engine#9243)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user