refactor: make TrackableObject::weak_map_id() constexpr (#47092)

* refactor: make TrackableObject::weak_map_id() constexpr

refactor: make BaseWindow::GetID() inline and constexpr

* refactor: make NativeWindow::window_id() constexpr too
This commit is contained in:
Charles Kerr 2025-05-15 16:10:33 -05:00 committed by GitHub
commit d720aea700
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 3 additions and 7 deletions

View file

@ -1154,10 +1154,6 @@ void BaseWindow::SetTitleBarOverlay(const gin_helper::Dictionary& options,
}
#endif
int32_t BaseWindow::GetID() const {
return weak_map_id();
}
void BaseWindow::RemoveFromParentChildWindows() {
if (parent_window_.IsEmpty())
return;