refactor: make api::View
methods const, private (#46551)
* refactor: make api::View::GetBounds() const Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: make api::View::OnViewBoundsChanged() private refactor: make api::View::OnViewIsDeleting() private refactor: make api::View::OnChildViewRemoved() private Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: make ChildPair private Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
de933233e6
commit
feaa9ec5b9
2 changed files with 10 additions and 10 deletions
|
@ -280,7 +280,7 @@ void View::SetBounds(const gfx::Rect& bounds) {
|
|||
view_->SetBoundsRect(bounds);
|
||||
}
|
||||
|
||||
gfx::Rect View::GetBounds() {
|
||||
gfx::Rect View::GetBounds() const {
|
||||
if (!view_)
|
||||
return {};
|
||||
return view_->bounds();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue